forked from xiaket/etc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias
65 lines (59 loc) · 1.87 KB
/
alias
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
64
65
if [ "x$ARCH" = "xDarwin" ]
then
# GNU rules.
alias rm='grm'
alias head='ghead'
alias tail='gtail'
alias preview='open -a Preview '
alias win='/Applications/VirtualBox.app/Contents/MacOS/VBoxManage startvm winx'
alias diablo='open "/Applications/Diablo III/Diablo III.app" --args -launch -OnlineService.Matchmaking.ServerPool=AU1'
alias mtr='sudo /usr/local/sbin/mtr'
alias typora='open -a Typora '
# BSD fix
alias sed='gsed'
alias awk='gawk'
fi
alias grep='grep --color'
alias vi='nvim'
# Generic
alias su='su -'
alias df='df -h'
alias diff='colordiff'
# Typos
alias clera='clear'
alias ls-l='ls -l'
alias mkae='make'
alias maek='make'
alias gti='git'
# Acesssibilities
alias md='mkdir -p'
alias g='git'
alias which='type -p'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias rc='find . -name "*.pyc" -delete'
alias rt='rm -f *.torrent'
alias mn='make clean'
alias mt='make test'
alias :q='exit'
alias ZZ='exit'
alias py='ptpython3'
alias daemon='supervisorctl -c ~/.supervisord.conf'
alias gc='git commit -vs'
alias ga='git add'
alias act='source venv/bin/activate'
alias rerc='. ~/.bashrc; unset PIPENV_ACTIVE VIRTUAL_ENV PIP_PYTHON_PATH'
alias pipfix='pip install -U ptpython neovim black'
alias black='/usr/local/bin/black -l 80'
alias gcp='pbpaste | xargs git clone'
# https://news.sherlock.stanford.edu/posts/when-setting-an-environment-variable-gives-you-a-40-x-speedup
#alias fls='(LS_COLORS="ex=00:su=00:sg=00:ca=00:" ls)'
alias pcat='pygmentize -f terminal256 -O style=native -g'
alias reweb='clear && sudo /usr/sbin/httpd -k restart && date'
alias randport='python -c "import random; print(random.randint(1025, 32768))"'
alias brewup='brew update && brew upgrade && brew cleanup'
alias lvi='nvim --noplugin'
alias dssh='ssh-keygen -R'
alias ip='dig +short myip.opendns.com @resolver1.opendns.com'