Suppose I do the following in zsh
cd ~
cd dir1
cd dir2
cd dir3
evince foo.pdf
zsh writes exactly the same in its history file.
Now my question is whether it is possible to have
cd ~
cd ~/dir1
cd ~/dir1/dir2
cd ~/dir1/dir2/dir3
evince ~/dir1/dir2/dir3/foo.pdf
in zsh history instead. I.e. that zsh remembers only full paths.