Skip to content

Zsh

https://zsh.sourceforge.io/

Shortcut Function
Ctrl+R Search through the history
Ctrl+C Stop running command

path is a pre-existing special zsh array tied to PATH; don’t redeclare/shadow it as an ordinary variable.

Terminal window
for item in list
do
command1
command2
done
Terminal window
for item in list; do command1; command2; done
Terminal window
for dir in ~/path1 ~/path2; do echo "$dir"; git -C "$dir" rev-parse --abbrev-ref HEAD; done