Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Converting relative paths to full



Hello,

I'm trying to create a function to catch relative paths of
files/directories and converting those to full paths before sending
into history. Will hook it to "zshaddhistory", similar to this [0].

Looks like it's going to be a bit painful. Are there any pre-existing
function/variable or any example / shortcut you could point?

Thanks for your time,
Gürkan

[0]: https://github.com/phyber/zsh.d/blob/a595029597189c99bfb053383f4273d4a74e1688/hooks/zshaddhistory.zsh




Messages sorted by: Reverse Date, Date, Thread, Author