Bringing back original history plugin stuff (i liked the old history

mass-dump)
This commit is contained in:
Steven Lu 2013-07-26 01:42:06 -04:00
commit 4262b6238e
3 changed files with 4 additions and 5 deletions

View file

@ -13,8 +13,7 @@ alias please='sudo'
#alias g='grep -in'
# Show history
# alias history='fc -l 1'
alias his='fc -l 1'
alias history='fc -l 1'
# List direcory contents
alias lsa='ls -lah'

View file

@ -1,8 +1,8 @@
alias h='his'
alias h='history'
function hs
{
h | grep $*
history | grep $*
}
alias hsi='hs -i'

2
zshrc
View file

@ -71,7 +71,7 @@ function zshaddhistory() {
echo "$PWD; $COMMAND_STR; $TTY@$(date +%s.%N)" >> ~/.zsh_enhanced_history
# rest is "default" zshaddhistory()
print -sr "${COMMAND_STR}"
print -Sr ${COMMAND_STR}
fc -p
}