Browse Source

Add minimal cookbook

alacritty
ViViDboarder 1 year ago
parent
commit
df0f50849f
  1. 47
      minimal
  2. 32
      recipes/minimal/packages

47
minimal

@ -0,0 +1,47 @@
#!/bin/bash
# Initialization - DO NOT REMOVE
. helpers/initialize
##############################################################
### Customizations start here ################################
##############################################################
# Get current directory for future use in links
cd "$(dirname "$0")" || { echo "Could not change directory to $0"; exit 1;}
PROJECT_DIR=$(pwd)
export PROJECT_DIR
detect_package_manager
init_paths_and_vars
# Do prompting early to make longer install easier
install_packages=false
if ! is_installed "packages" || prompt_yn "Reinstall packages?" ; then
install_packages=true
fi
### Run recipes
if $install_packages ; then
recipe 'packages'
set_installed "packages"
fi
recipe 'dotfiles'
recipe 'bin'
if [ "$(uname)" == 'Darwin' ]; then
recipe 'mac-files'
recipe 'mac-bin'
fi
recipe 'git'
recipe 'vim-settings'
recipe 'fish'
git submodule init
git submodule update
### Show the Finished banner
finished
# vim: set tabstop=2:softtabstop=2:shiftwidth=2:expandtab

32
recipes/minimal/packages

@ -0,0 +1,32 @@
#! /bin/bash
sudo_package_update
# This now installs a lot of language specific stuff from python, gradle, to go.
# Should consider pulling these into different recipes that are dependent on the environment
# that I wish to bootstrap. If not a dev environment, I can trim out some of this.
# Packages that are pretty much the same treatment or names in all systems
packages="tmux htop curl wget ctags git tig pv jq fish mosh bash-completion neovim ripgrep"
# Manager specific packages
case "$PACKAGE_MANAGER" in
"port")
# Non-standard packages
packages="$packages the_silver_searcher bash"
# Newer version of git with completion
packages="$packages git +bash_completion"
# Install packages
sudo_package "$packages"
;;
"apt-get")
if [ -n "$(apt-cache policy silversearcher-ag)" ] ; then
packages="$packages silversearcher-ag"
fi
packages="$packages build-essential vim"
# Install packages
sudo_package "$packages"
;;
esac
Loading…
Cancel
Save