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 }