-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
86 lines (81 loc) · 2.23 KB
/
aliases
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# directories
alias md="mkdir -p"
alias rd="rmdir"
# ls
alias ls="ls -G"
alias l="ls -AF"
alias ll="ls -alF"
alias lL="ll -L"
# other GNU aliases
#alias echo="/usr/local/bin/gecho"
#alias false="/usr/local/bin/gfalse"
#alias kill="/usr/local/bin/gkill"
#alias printf="/usr/local/bin/gprintf"
#alias pwd="/usr/local/bin/gpwd"
#alias test="/usr/local/bin/gtest"
#alias true="/usr/local/bin/gtrue"
#alias which="/usr/local/bin/which 2>/dev/null"
# helpers
alias cp="cp -ir"
alias d="cd ~/Desktop/"
alias desk="cd ~/Desktop/"
alias digga="dig +short"
alias down="cd ~/Downloads/"
alias dots="cd ~/.dotfiles/"
alias drop="cd ~/Dropbox/"
alias fm="foreman run python manage.py"
alias fr="foreman run"
alias fs="foreman start"
alias how="apropos"
alias json="jq . -C"
# alias matlab="/Applications/MATLAB_R2018a.app/bin/matlab"
# alias mlint="/Applications/MATLAB_R2018a.app/bin/maci64/mlint"
alias myip="curl checkip.amazonaws.com"
alias pubkey="cat ~/.ssh/id_rsa.pub"
alias ln="ln -iv"
alias mv="mv -i"
alias mux="tmuxinator"
alias o="open ."
alias p="cd ~/Projects"
alias proj="cd ~/Projects"
alias prp="pipenv run python"
alias ptr="dig ptr +short"
alias rcup="rcup -v"
alias scheme="rlwrap csi"
alias sudo="sudo " # use sudo with aliases
alias tl="tmux list-sessions | awk '{print \$1}' | sed 's/:$//g' | column -x"
alias top="htop"
alias tower="gittower ."
alias trim="tr -d ' \t\n\r\f'"
alias x="exit"
alias x11="open /Applications/Utilities/XQuartz.app"
# git
#alias git="hub"
alias ga="git add"
alias gaa="git add -A"
alias gb="git branch"
alias gc="git commit"
alias gc="git commit"
alias gca="git commit --amend --no-edit"
alias gcam="git commit --amend"
alias gcm="git commit -m"
alias gf="git fetch"
alias gh="git browse"
alias gl="git log"
alias gm="git merge"
alias gr="git rebase"
alias gri="git rebase -i"
alias gr2="git rebase -i HEAD~2"
alias gs="git status"
alias gt="git tree"
alias gu="git up"
alias pull="git pull"
alias push="git push"
# rc files
alias aliases="vim ~/.aliases; source ~/.aliases"
alias vimrc="vim ~/.vimrc"
alias vimrcb="vim ~/.vimrc.bundles"
alias zshenv="vim ~/.zshenv; source ~/.zshenv"
alias zshenvl="vim ~/.zshenv.local; source ~/.zshenv"
alias zshrc="vim ~/.zshrc; source ~/.zshrc"
alias zshrcl="vim ~/.zshrc.local; source ~/.zshrc.local"