Refactors history alias and moves it.

More compact case statement instead of the ugly if elif... else
statement. Moves it to history.zsh
This commit is contained in:
LFDM
2014-01-10 23:50:19 +01:00
committed by Marc Cornellà
parent ace98846ea
commit d33b0aae91
2 changed files with 9 additions and 14 deletions

View File

@@ -4,19 +4,5 @@ alias please='sudo'
#alias g='grep -in'
# Show history
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
then
alias history='fc -fl 1'
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
then
alias history='fc -El 1'
elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ]
then
alias history='fc -il 1'
else
alias history='fc -l 1'
fi
alias afind='ack-grep -il'