Zsh
листая FAQ нашёл интересные функции, которые хотелось бы прокопать.
multi-line commands editable as a single buffer (even files!),
variable editing (vared),
command buffer stack,
print text straight into the buffer for immediate editing (print -z),
zle - Z-Shell Line Editor
Multi-line editing
Можно нажать клавишу ESC, а затем Return - и печатная каретка перенесется на следующую строчку
code snippet start
% print This is line one<ESC><RET>
print This is line two
code snippet end
Стрелочками можно вернуться на строку выше.
Порядок чтения файлов инициализации
FILES:
$ZDOTDIR/.zshenv$ZDOTDIR/.zprofile$ZDOTDIR/.zshrc$ZDOTDIR/.zlogin$ZDOTDIR/.zlogout${TMPPREFIX}*** (default is /tmp/zsh*)/etc/zshenv/etc/zprofile/etc/zshrc/etc/zlogin/etc/zlogout(installation-specific - /etc is the default)
If ZDOTDIR is unset, HOME is used instead.
Commands are then read from $ZDOTDIR/.zshenv.
If the shell is a login shell, commands are read from /etc/zprofile and then $ZDOTDIR/.zprofile.
Then, if the shell is interactive, commands are read from /etc/zshrc and then $ZDOTDIR/.zshrc.
Finally, if the shell is a login shell, /etc/zlogin and $ZDOTDIR/.zlogin are read.