-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.zsh
63 lines (54 loc) · 1.46 KB
/
aliases.zsh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# # --------------------------------------------------------------------
# # aliases
# # --------------------------------------------------------------------
alias man='LC_ALL=C LANG=C man'
if [ `uname` = "Darwin" ]; then
# this one goes out to bea, but also...why do I still have to do this sometimes?
alias fixaudio='sudo killall coreaudiod'
else
alias ls='ls -FGC --color=auto'
fi
# replace some commands with the better versions of those commands
if command -v exa &> /dev/null; then
alias ls='exa -G --color auto --icons -a -s type'
fi
if command -v rg &> /dev/null; then
alias ack='rg'
fi
if command -v bat &> /dev/null; then
alias cat='bat'
fi
if command -v procs &> /dev/null; then
alias ps='procs'
fi
if command -v btm &> /dev/null; then
# there's a joke here somewhere...
alias top='btm'
fi
if command -v fd &> /dev/null; then
alias find='fd'
else
# find sucks right? I mean, you just want to find a goddamn filename
alias ffind='find -name'
fi
alias ll='ls -al'
alias l='\ls -pC'
alias c='clear'
alias vim='vim -p'
alias vi='vim'
alias emacs='vimtutor'
alias pico='nano'
alias be='bundle exec'
alias rm='nocorrect rm -v'
alias mv='nocorrect mv -v'
alias cp='nocorrect cp -v'
alias mkdir='nocorrect mkdir -p'
# Basic directory operations
alias ...='cd ../..'
# Super user
alias _='sudo'
# Show history
alias history='fc -l 1'
# vim stuff
alias clearviews="rm $HOME/.vim/tmp/views/*"
alias clearswaps="rm $HOME/.vim/tmp/swap/*"