Skip to content

Instantly share code, notes, and snippets.

@guilyx
Created April 9, 2020 14:59
Show Gist options
  • Save guilyx/0c46af3acd66c6cccbf87c09ca528d0e to your computer and use it in GitHub Desktop.
Save guilyx/0c46af3acd66c6cccbf87c09ca528d0e to your computer and use it in GitHub Desktop.
ZSH Installer
sudo apt install zsh
chsh -s /usr/bin/zsh
exit
gnome-terminal -e echo $SHELL
if [$SHELL = "/usr/bin/zsh"]
then
echo "Default shell environment succesfully changed"
else
chsh -s $(which zsh)
if [$SHELL = "/usr/bin/zsh"]
then
echo "Default shell environment succesfully changed"
else
echo "Shell environment change has failed, new attempt..."
echo "export SHELL=`which zsh`
[ -z "$ZSH_VERSION" ] && exec "$SHELL" -l" > .bash_profile
echo "ZSH is set, now installing oh my zsh..."
sudo apt install wget git
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc
sudo apt-get install fonts-powerline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment