Archive for tag: history

Sharing the History in Zsh

1 August, 2010 (06:30) | zsh, [English Posts] | By: Wolfgang

A great feature of the Zshell is its possibility to share the history between multiple shell (screen) sessions or even multiple physical hosts.

To do so, make sure the following options are set in your zsh configuration (usually ~/.zshrc):

setopt append_history
setopt share_history

From now on, the history is shared amongst all zsh sessions on your computer. If ...

Avoid Saving Certain Commands in the Zsh History

28 July, 2010 (06:30) | zsh, [English Posts] | By: Wolfgang

If you want to avoid that certain commands are saved in your $HISTFILE (usually ~/.zsh_history), just place a space in front of the actual command. This is useful for trivial commands like pwd, ls and cd or if you're using commands with passwords in them (which isn't a good idea anyway).

If it doesn't work, ...