-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliases
47 lines (38 loc) · 1.42 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
# OSX Specific aliases
if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ -s "/usr/local/bin/nvim" ]]; then
alias vim="nvim"
fi
fi
# Bundle
alias bi='bundle install'
alias be='bundle exec'
# Git
alias g='git'
alias gs='git status'
alias gsmu='git submodule update --recursive'
alias gsmud='git submodule foreach git checkout develop && git submodule foreach git pull origin develop'
alias gsmi='git submodule init'
alias grpo='git remote prune origin'
alias ga='git add .'
alias gc='git commit -m' # requires you to type a commit message
alias gp='git push'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative'
# Yarn
alias yr='yarn run'
# Tmux
alias mux='tmuxinator'
alias ta='tmux attach -t'
alias ts='tmux new-session -s'
alias tl='tmux list-sessions'
alias tksv='tmux kill-server'
alias tkss='tmux kill-session -t'
# Searching
alias ag='ag --color-path "1;32" --color-match "1;33" --color-line-number "1;31"'
alias rg='rg --colors "match:fg:yellow" --colors "line:fg:red" --colors "path:fg:green" --no-messages'
# Misc
# Output all the term colors and their respective codes
alias colors='( x=`tput op` y=`printf %$((${COLUMNS}-6))s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done; )'
alias vtop='vtop -t brew'
# Override custom term definitions
alias ssh="TERM=xterm-256color ssh"