can now choose between zsh or fish for your shell!
This commit is contained in:
parent
daf4b3681b
commit
ed15cd2d3a
1 changed files with 16 additions and 11 deletions
27
init.sh
27
init.sh
|
@ -11,8 +11,18 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#setup prezto
|
#setup prezto
|
||||||
echo "Initializing Prezto"
|
echo "Select which shell to configure and use:"; read answer
|
||||||
(zsh prezto.zsh)
|
if [[ $answer = "zsh" ]] || [[ $answer = "z" ]]; then
|
||||||
|
echo "Initializing Prezto"
|
||||||
|
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
|
#create symlinks using stow
|
||||||
mkdir ~/.ssh
|
mkdir ~/.ssh
|
||||||
|
@ -25,13 +35,6 @@ chmod 0700 ~/.ssh
|
||||||
chmod -R 0600 ~/.ssh/*
|
chmod -R 0600 ~/.ssh/*
|
||||||
cp "$HOME/stevset/mc" "$HOME/.config/mc"
|
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
|
#install spacevim
|
||||||
echo "Installing Space VIM!"
|
echo "Installing Space VIM!"
|
||||||
if [ ! -e ~/.space-vim ]
|
if [ ! -e ~/.space-vim ]
|
||||||
|
@ -50,8 +53,10 @@ if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install Emacs Doom
|
#install Emacs Doom
|
||||||
echo "Installing Emacs DOOM! (might take awhile)"
|
echo "Install Emacs Doom now? y/n"; read answer
|
||||||
(zsh emacs_doom.zsh)
|
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
|
zsh emacs_doom.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
echo "*******************************"
|
echo "*******************************"
|
||||||
echo "* Restart your terminal *"
|
echo "* Restart your terminal *"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue