有没有办法配置.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)