Is there a way to configure .bash_history to show the pwd of each command issued?
My ~/.bash_history file has these contents:
git commit -am "git-hooks" --no-verify
git push
teros_install_git_hooks ; echo $?
chmod -R /Users/alex/codes/teros/vcs-hooks/.githooks -w
but I would like to show something like:
git commit -am "git-hooks" --no-verify (/Users/me/foo)
git push (/Users/me/foo)
teros_install_git_hooks ; echo $? (/var/root/.ssh)
chmod -R /Users/alex/codes/teros/vcs-hooks/.githooks -w (/var/root/.ssh)