myconfig

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

commit 1f78009fd456f0769d883c99add0404287b182bc
parent 6be2a2a6d52654539db8f03084c5e285b410a9bd
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri,  2 Nov 2012 10:12:39 +0100

custom history file

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

diff --git a/zsh/zshrc b/zsh/zshrc @@ -188,13 +188,22 @@ function precmd () { fi } +function zshaddhistory() { + echo "$TTYREC: `date +%s`:0;${1%%$'\n'}" >> ~/logs/my_hist + if [[ $1 =~ '^ ' ]] ; then + return 1 + fi + print -sr -- "${1%%$'\n'}" + #fc -p +} + # TODO http://aperiodic.net/phil/prompt/ # usage: manf command -flag (via commandlinefu) manf () { man $1 | less -p "^ +$2"; } # create a directory (with flags) and cd inside it mcd () { mkdir "$@" && cd ${@:$#} } -# move a file somewhere (with flags) and link it here +# move a file somewhere (with flags) and link it back here mln () { mv "$@" && ln -s ${@:$#} } #TODO