Skip to content

Instantly share code, notes, and snippets.

@thiagosouza
Last active November 1, 2021 00:36
Show Gist options
  • Save thiagosouza/4171a34ed064e12e1b929688315e4698 to your computer and use it in GitHub Desktop.
Save thiagosouza/4171a34ed064e12e1b929688315e4698 to your computer and use it in GitHub Desktop.
[Zsh] Zsh terminal setup and usage #terminal by @thiagosouza
#Zshell
#http://www.zsh.org/
sudo apt-get install -y zsh
#post-install instructions
apt-cache show fzf
#debian info
cat /usr/share/doc/fzf/README.Debian
#make zsh the default shell
sudo chsh -s $(which zsh)
sudo chsh -s $(which zsh) vagrant #when you are in a vagrant machine
sudo chsh -s $(which zsh) $USER #user
#or
sudo chsh -s /bin/zsh
echo $SHELL #/bin/zsh
echo "source ~/.bash_aliases" >> ~/.zshrc #add personal aliases to zsh
echo "source /usr/share/doc/fzf/examples/key-bindings.zsh" >> ~/.zshrc
echo "source /usr/share/doc/fzf/examples/completion.zsh" >> ~/.zshrc
source ~/.zshrc
#macosx
brew install zsh zsh-completions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment