zsh
Helpful Commands
cd -
Back to the previous folder Five ZSH tricks to optimize your shell workflowCTRL+R
History search Five ZSH tricks to optimize your shell workflowhash -r
Force path hash update why is bash looking for vim in /usr/bin
My settings
Kill the lag
By default, there is a 0.4 second delay after you hit the key and when the mode change is registered. This results in a very jarring and frustrating transition between modes. Let's reduce this delay to 0.1 seconds.
Theme
I use oh-my-zsh to handle themes, and use the af-magic theme. I customize the theme's prompt to only display the current directory (instead of the pull path) as follows:
The key change is using $FG[032]%c\
instead of $FG[032]%~\
.
Plugins
Plugins can add very useful functionality, but the number of plugins used impacts start-up performance. That being said, I use the following plugins:
git
vi-mode
history-substring-search
Last updated
Was this helpful?