blob: e8f354d96865cdcb2376fd3f06b1211c243ccfe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#
# zsh/aliases.zsh
#
alias zhelp='run-help'
alias ..='cd ../'
alias ...='cd ../../'
alias ....='cd ../../../'
alias cd..='cd ..'
alias d='dirs -v | head -10'
alias po=popd
alias pu=pushd
if [[ -n "${IS_LINUX}" ]]; then
alias ls='ls --color=auto'
elif [[ -n "${IS_BSD}" ]]; then
alias ls='ls -G'
fi
alias l='ls -lah'
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: #
|