https://askubuntu.com/questions/23630/how-do-you-share-histo...
It is possible to get similar effects by kludging around with bash, but it's a built-in feature in zsh.