4

I was wondering: If I type history I can see the previous commands I typed and see what happened and perhaps keep commands as reference. But I don't know in which directory I was when I typed the commands.

Is there a version of history that displays also the directory you were in when you typed the command?

slm
  • 369,824
Jim
  • 10,120

1 Answers1

2

Following the link about Per-directory history in zsh and then the link in the comment there, two Per-directory history in bash links are provided (one is broken, but corrected here):

András
  • 51
  • 3