aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-03 16:30:34 +0800
committerAaron LI <aly@aaronly.me>2018-02-03 16:30:34 +0800
commit1c2c86aabdb954068bf3be7c0ebf2fe0472223d3 (patch)
treef8eb130835d4618d807208f3566867c369a08cc8 /_zsh
parent1df2be165dba7e56a2cc14ba7f03a760bac63649 (diff)
downloaddotfiles-1c2c86aabdb954068bf3be7c0ebf2fe0472223d3.tar.bz2
zsh: add alias rm=safe-rm and two more git-related aliases
Diffstat (limited to '_zsh')
-rw-r--r--_zsh/90-aliases.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/_zsh/90-aliases.zsh b/_zsh/90-aliases.zsh
index 1c1ec06..e8f354d 100644
--- a/_zsh/90-aliases.zsh
+++ b/_zsh/90-aliases.zsh
@@ -22,12 +22,17 @@ alias la='ls -lAh'
alias ll='ls -lh'
alias lsa='ls -lah'
+# Do not use `GREP_OPTIONS`
alias grep='grep --color=auto'
# Git
alias gita='git add'
alias gitc='git commit'
alias gitd='git diff'
+alias gitl='git log'
alias gits='git status'
+alias gitsl='git shortlog'
+
+exists "safe-rm" && alias rm=safe-rm
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #