remove nvm cruft

This commit is contained in:
Daylin Morgan 2022-08-16 14:13:23 -05:00
parent f3a1f61dc6
commit 35db636323

View file

@ -35,7 +35,6 @@ for opt in "$@"; do
;;
--force) force=1 ;;
--fzf) fzf=1 ;;
--nvm) nvm=1 ;;
--mambaforge) mamba=1 ;;
*)
echo "unknown option: $opt"
@ -91,35 +90,7 @@ install_fzf() {
echo "installing fzf using git"
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install \
--key-bindings \
--completion \
--no-bash \
--no-zsh \
--no-update-rc
}
install_nvm() {
echo "##############"
echo installing nvm
echo "##############"
check_existing "nvm" "$HOME/.nvm" skip
if [[ $skip -eq 1 ]]; then
echo "remove your previous installation or rerun with --force"
return
fi
local current_dir=$PWD
git clone https://github.com/nvm-sh/nvm.git ~/.nvm
cd ~/.nvm
git checkout v0.39.0
. ./nvm.sh
cd $current_dir
~/.fzf/install --bin
}
install_mambaforge() {
@ -154,15 +125,10 @@ install_all() {
echo
install_fzf
echo
install_nvm
echo
install_mambaforge
}
# remove once functional
echo $@
echo "#################"
echo EXTRAS DOWNLOADER
echo "#################"
@ -177,10 +143,6 @@ if [ "$fzf" ]; then
install_fzf
fi
if [ "$nvm" ]; then
install_nvm
fi
if [ "$mamba" ]; then
install_mambaforge
fi