From 4262b6238e715453746f7f533338e77446bdb460 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Fri, 26 Jul 2013 01:42:06 -0400 Subject: [PATCH] Bringing back original history plugin stuff (i liked the old history mass-dump) --- lib/aliases.zsh | 3 +-- plugins/history/history.plugin.zsh | 4 ++-- zshrc | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/aliases.zsh b/lib/aliases.zsh index 98af8648e..9b3709172 100644 --- a/lib/aliases.zsh +++ b/lib/aliases.zsh @@ -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' diff --git a/plugins/history/history.plugin.zsh b/plugins/history/history.plugin.zsh index 3bad8dc47..0f4aa4b10 100644 --- a/plugins/history/history.plugin.zsh +++ b/plugins/history/history.plugin.zsh @@ -1,8 +1,8 @@ -alias h='his' +alias h='history' function hs { - h | grep $* + history | grep $* } alias hsi='hs -i' diff --git a/zshrc b/zshrc index 46f8a2d61..3c45012d8 100644 --- a/zshrc +++ b/zshrc @@ -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 }