remove nvm cruft
This commit is contained in:
parent
f3a1f61dc6
commit
35db636323
1 changed files with 1 additions and 39 deletions
40
extras.sh
40
extras.sh
|
@ -35,7 +35,6 @@ for opt in "$@"; do
|
||||||
;;
|
;;
|
||||||
--force) force=1 ;;
|
--force) force=1 ;;
|
||||||
--fzf) fzf=1 ;;
|
--fzf) fzf=1 ;;
|
||||||
--nvm) nvm=1 ;;
|
|
||||||
--mambaforge) mamba=1 ;;
|
--mambaforge) mamba=1 ;;
|
||||||
*)
|
*)
|
||||||
echo "unknown option: $opt"
|
echo "unknown option: $opt"
|
||||||
|
@ -91,35 +90,7 @@ install_fzf() {
|
||||||
echo "installing fzf using git"
|
echo "installing fzf using git"
|
||||||
|
|
||||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||||
~/.fzf/install \
|
~/.fzf/install --bin
|
||||||
--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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_mambaforge() {
|
install_mambaforge() {
|
||||||
|
@ -154,15 +125,10 @@ install_all() {
|
||||||
echo
|
echo
|
||||||
install_fzf
|
install_fzf
|
||||||
echo
|
echo
|
||||||
install_nvm
|
|
||||||
echo
|
|
||||||
install_mambaforge
|
install_mambaforge
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# remove once functional
|
|
||||||
echo $@
|
|
||||||
|
|
||||||
echo "#################"
|
echo "#################"
|
||||||
echo EXTRAS DOWNLOADER
|
echo EXTRAS DOWNLOADER
|
||||||
echo "#################"
|
echo "#################"
|
||||||
|
@ -177,10 +143,6 @@ if [ "$fzf" ]; then
|
||||||
install_fzf
|
install_fzf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$nvm" ]; then
|
|
||||||
install_nvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$mamba" ]; then
|
if [ "$mamba" ]; then
|
||||||
install_mambaforge
|
install_mambaforge
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue