Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You could deduce the working directory from the sequence of commands in your history file, so the working directory is implicitly contained in the history file.

I didn't think of that, but I don't think it's always possible. E.g. suppose you run "source somefile", and somefile contains a cd command.

Unfortunately I'm using bash mostly, so I'm afraid the suggestion you gave for zsh doesn't work for me.

By the way, another thing I'm interested in is how people manage their history files over multiple machines.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: