myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

commit 6fd3b23000bd46ed434b9b8c6b4f88668ea463ed
parent ca50076e1da655240ff8e269d37b6a84b4bcc110
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  5 Aug 2020 13:27:47 +0200

save PWD in my_hist

Diffstat:
zsh/zshrc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/zsh/zshrc b/zsh/zshrc @@ -205,7 +205,8 @@ function precmd () { } function zshaddhistory() { - echo "$TTYREC: `date +%s`:0;${1%%$'\n'}" >> ~/logs/my_hist + # note that this can break if PWD contains ':' + echo "$TTYREC:$PWD:`date +%s`:0;${1%%$'\n'}" >> ~/logs/my_hist if [[ $1 =~ '^ ' ]] ; then return 1 fi