是否可以配置.bash_history
来显示每个发出的命令的密码?
我的~/.bash_history
文件包含以下内容:
git commit -am "git-hooks" --no-verify
git push
teros_install_git_hooks ; echo $?
chmod -R /Users/alex/codes/teros/vcs-hooks/.githooks -w
但我想显示以下内容:
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)