Created
April 9, 2020 14:59
-
-
Save guilyx/0c46af3acd66c6cccbf87c09ca528d0e to your computer and use it in GitHub Desktop.
ZSH Installer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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