I often navigate between multiple directories in a bash session. Sometimes upto 4. For each directory I am in I often have an exclusive set of commands that I fire and this set can be between 7 and 10 commands. I was wondering if it is possible to create an association between my bash command history and the cwd in which those commands were fired. Appreciate any suggestions.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
Use the following re-definition for
|
||||
|
|
|
You can use
|
|||
|
|
pwd? (with backquotes) – m4573r Sep 10 '12 at 14:45