[provisioning] update recipes

This commit is contained in:
Correl Roush 2021-01-21 19:21:46 -05:00
parent 67cf5f8a15
commit 9859451198
5 changed files with 16 additions and 12 deletions

View file

@ -16,4 +16,4 @@ if ! [ -d ${HOME}/.doom.d ]; then
_run "[emacs-doom] Install .doom.d" ln -s ${HOME}/dotfiles/.doom.d ${HOME}/.doom.d _run "[emacs-doom] Install .doom.d" ln -s ${HOME}/dotfiles/.doom.d ${HOME}/.doom.d
fi fi
_run "[emacs-doom] Refreshing" $HOME/.emacs.d/bin/doom refresh _run "[emacs-doom] Refreshing" $HOME/.emacs.d/bin/doom sync

View file

@ -5,7 +5,6 @@ set -e
case $_PLATFORM in case $_PLATFORM in
darwin) darwin)
_recipe brew _recipe brew
_brew kakasi
_brew cmigemo _brew cmigemo
;; ;;
linux) linux)

View file

@ -8,7 +8,6 @@ case $_PLATFORM in
darwin) darwin)
_brew kubernetes-cli _brew kubernetes-cli
_brew kubernetes-helm _brew kubernetes-helm
_brew_cask minikube
_brew stern _brew stern
;; ;;
esac esac

View file

@ -2,7 +2,7 @@
# Description: The Python programming language # Description: The Python programming language
set -e set -e
__PYTHON_VERSION=3.8.2 __PYTHON_VERSION=3.9.1
_recipe _path _recipe _path
_recipe git _recipe git
@ -12,7 +12,16 @@ function _pip {
if ! pip show $pkg >/dev/null 2>&1; then if ! pip show $pkg >/dev/null 2>&1; then
_run "[pip] Install $pkg" pip install $pkg _run "[pip] Install $pkg" pip install $pkg
else else
echo "[pip] $pkg is already installed, skiping." echo "[pip] $pkg is already installed, skipping."
fi
}
function _pyenv {
local version=$1
if ! pyenv versions --bare | grep -q "^$version$"; then
_run "[pyenv] Install Python $version" pyenv install $version
else
echo "[pyenv] Python $version is already installed, skipping."
fi fi
} }
@ -42,8 +51,5 @@ _profile 'eval "$(pyenv init -)"'
_profile 'eval "$(pyenv virtualenv-init -)"' _profile 'eval "$(pyenv virtualenv-init -)"'
_profile 'pyenv global $(pyenv versions --bare --skip-aliases | egrep "^(\.?[[:digit:]]+)+$" | sort -rV)' _profile 'pyenv global $(pyenv versions --bare --skip-aliases | egrep "^(\.?[[:digit:]]+)+$" | sort -rV)'
_pyenv $__PYTHON_VERSION
if ! [ -d ~/.pyenv/versions/${__PYTHON_VERSION} ]; then pyenv global $(pyenv versions --bare --skip-aliases | egrep "^(\.?[[:digit:]]+)+$" | sort -rV)
_run "[pyenv] Install python ${__PYTHON_VERSION}" pyenv install ${__PYTHON_VERSION}
fi
pyenv global ${__PYTHON_VERSION}

View file

@ -23,7 +23,6 @@ case $_PLATFORM in
# File compression # File compression
_brew p7zip _brew p7zip
_brew unrar
# Misc # Misc
_brew entr _brew entr
@ -31,6 +30,7 @@ case $_PLATFORM in
_brew htop _brew htop
_brew jq _brew jq
_brew lnav _brew lnav
_brew ripgrep
_brew the_silver_searcher _brew the_silver_searcher
_brew tig _brew tig
_brew tmux _brew tmux
@ -52,7 +52,6 @@ case $_PLATFORM in
# File compression # File compression
_apt p7zip _apt p7zip
_apt unrar
# Misc # Misc
_apt entr _apt entr
@ -60,6 +59,7 @@ case $_PLATFORM in
_apt htop _apt htop
_apt jq _apt jq
_apt lnav _apt lnav
_apt ripgrep
_apt silversearcher-ag _apt silversearcher-ag
_apt tig _apt tig
_apt tmux _apt tmux