This saves the path of each shell command with the command in a way that
is suitable for immediate execution (which would cd to the dir the cmd
was initially run in). My corresponding zsh-substring-search plugin
changes automatically cull the path out (unless doing a search-down).