ZSH configuration files
Install zsh:
sudo apt-get update
sudo apt-get install zsh
zsh --version
Change shell:
chsh -s $(which zsh)
Close the current terminal and open a new one:
echo $SHELL
or
echo $0
sudo apt-get install fonts-powerline
Follow this git-prompt guide
Color schemes with Gogh
Before using Gogh, need to install dconf-cli
, uuid-runtime
:
sudo apt install dconf-cli uuid-runtime
Clone Gogh:
git clone https://github.com/Mayccoll/Gogh
Install color scheme by:
cd Gogh/themes
./zenburn.sh #or whatever color scheme you want to use
For Gnome terminal you'll need to create a new Gnome Terminal profile, or else you'll get an error. From the Gnome Terminal Preferences, click the + button next to Profiles, enter a new profile name and click Create. After installing a new color scheme (which is added as a new profile for Gnome Terminal) using Gogh, you can delete this profile.
Some favorite color schemes: Brogrammer, Panda, Shaman, Vs Code Dark+
Fancy prompt with Powerlevel10k
Install manually:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
Configuration
On the first run, Powerlevel10k configuration wizard will ask you a few questions and configure your prompt. If it doesn't trigger automatically, type p10k configure
. Configuration wizard creates ~/.p10k.zsh
based on your preferences. Additional prompt customization can be done by editing this file. It has plenty of comments to help you navigate through configuration options.
- A User's Guide to the Z-Shell by Peter Stephenson
- zsh-lovers
- Zzappers Best of ZSH tips by David Rayner
- From Bash to Z Shell: Conquering the Command Line
- Zsh reference-card (PDF)
- Moving to Zsh
- zsh-pony
- My zsh configuration by Julien Voisin
- Zsh - ArchWiki
- Zsh Utilities functions
- Configure Zsh Options & Plugins