diff options
author | dongweiming <ciici123@hotmail.com> | 2013-06-30 20:46:10 +0800 |
---|---|---|
committer | dongweiming <ciici123@hotmail.com> | 2013-06-30 20:54:23 +0800 |
commit | 77cf8696053d5256b4deb7cddc79c31d26158451 (patch) | |
tree | 417a9f29289521da36fca0db4b7f14f7f0eef368 /lib | |
parent | bc3cadf5c83697c176c9d4ce41c7fde7f57bf6e7 (diff) | |
download | zsh-77cf8696053d5256b4deb7cddc79c31d26158451.tar.gz zsh-77cf8696053d5256b4deb7cddc79c31d26158451.tar.bz2 zsh-77cf8696053d5256b4deb7cddc79c31d26158451.zip |
Add option for show in the command execution time stamp in the history
Diffstat (limited to 'lib')
-rw-r--r-- | lib/aliases.zsh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/aliases.zsh b/lib/aliases.zsh index 9b3709172..b279bf855 100644 --- a/lib/aliases.zsh +++ b/lib/aliases.zsh @@ -13,8 +13,18 @@ alias please='sudo' #alias g='grep -in' # Show history -alias history='fc -l 1' - +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 # List direcory contents alias lsa='ls -lah' alias l='ls -la' |