can now choose between zsh or fish for your shell!

This commit is contained in:
Stefen Auris 2020-11-15 01:07:13 -05:00
parent daf4b3681b
commit ed15cd2d3a

25
init.sh
View file

@ -11,8 +11,18 @@ else
fi
#setup prezto
echo "Select which shell to configure and use:"; read answer
if [[ $answer = "zsh" ]] || [[ $answer = "z" ]]; then
echo "Initializing Prezto"
(zsh prezto.zsh)
zsh prezto.zsh
chsh -s /bin/zsh
elif [[ $answer = "fish" ]] || [[ $answer = "f" ]]; then
echo "Installing Oh-My-Fish"
bash fish.sh
chsh -s /bin/fish
else
echo "Guess we're sticking with default bash then..."
fi
#create symlinks using stow
mkdir ~/.ssh
@ -25,13 +35,6 @@ chmod 0700 ~/.ssh
chmod -R 0600 ~/.ssh/*
cp "$HOME/stevset/mc" "$HOME/.config/mc"
#set new shell
echo "Set new shell to zsh"
if [[ $SHELL != "/bin/zsh" ]]
then
chsh -s /bin/zsh
fi
#install spacevim
echo "Installing Space VIM!"
if [ ! -e ~/.space-vim ]
@ -50,8 +53,10 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
fi
#install Emacs Doom
echo "Installing Emacs DOOM! (might take awhile)"
(zsh emacs_doom.zsh)
echo "Install Emacs Doom now? y/n"; read answer
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
zsh emacs_doom.zsh
fi
echo "*******************************"
echo "* Restart your terminal *"