mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-14 12:19:51 +00:00
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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user