blob: ac140b3e6ef5e91666079452851879ca87ae0d40 (
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
|
#
# 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}" ]] || [[ -n "${IS_MAC}" ]]; 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'
exists "vi" || alias vi=vim
exists "safe-rm" && alias rm=safe-rm
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #
|