/
alias.zsh
105 lines (85 loc) · 2.18 KB
/
alias.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Ping
alias pingg='ping -c 3 google.com'
alias pingd='ping -c 3 8.8.8.8'
# Listing directories
alias ll='ls -lahG'
alias lls='ls -aG'
alias lh='ls -d .*'
# Changing directories
alias ..='cd ..'
alias ...='cd ../..'
# Creating directories
alias mkdir='mkdir -p'
# Hub
# alias git=hub
# alias gpr='git pull-request'
# Git
alias ga='git add'
alias gp='git push'
alias gs='git status -s'
alias g='gs'
alias gd='git diff'
alias gm='git commit'
alias gma='git commit -a'
alias gc='git checkout'
alias gl='git plf'
alias gb='git branch'
alias gg='git grep'
alias gw='git worktree'
alias gf='git fetch'
# ZSH
alias reload=". ~/.zshrc && echo 'ZSH config reloaded from ~/.zsh/zshrc'"
alias zshrc='cd ~/.zsh; vim zshrc && reload'
# Vim
alias vimrc='cd ~/.vim && vim vimrc'
# Bundler
alias 🅱️='bundle'
alias b='bundle'
alias be='bundle exec'
alias bump='bundle update'
# Pow
alias pow_restart='touch tmp/restart.txt'
# Rack
alias rackDown4What='rackup'
# tmux
alias tx='tmux'
## tmux session management
alias txn='tx new -s'
alias txa='tx attach -t'
alias txs='tx switch -t'
alias txls='tx list-sessions'
alias txd='tx detach'
## tmux window management
alias txnw='tx new-window'
alias txw='tx select-window -t :'
alias txrw='tx rename-window'
## tmux pane management
alias txv='tx split-window'
alias txh='tx split-window -h'
alias txsp='tx select-pane'
alias txnp='tx select-pane -t :.+'
## quickly open tmux.conf
alias tmuxconf='vim ~/.tmux/tmuxconf'
# Override autocorrect
alias vim='nocorrect vim'
alias ber='nocorrect bundle exec rspec'
alias rspec='nocorrect rspec'
# Alias typos
alias celar='clear'
alias exti='exit'
alias eixt='exit'
# Flush memcached
alias flushmem='echo flush_all | nc localhost 11211'
# Pretty Print JSON, mostly used for curl
alias pp='underscore print --color'
# Don't use Xcode ctags
if [ "$HAS_BREW" ]; then
alias ctags="`brew --prefix`/bin/ctags"
fi
# Prompt switching
alias tiny="export TINY_PROMPT=1"
alias norm="export TINY_PROMPT=0"
# Add some defaults for grep
alias grep="grep --color"
alias ducks="du -cks * | sort -rn | head -11"
alias selfie="vlc v4l2:///dev/video0 --video-filter=scene --scene-path=/home/tyler/Pictures --scene-format=png -I dummy -A dummy vlc://quit"