-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliasrc
69 lines (61 loc) · 1.4 KB
/
aliasrc
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
# vim: filetype=zsh
# things to ignore
alias rm=' rm'
# vim aliases
alias vi='vim'
alias vio='vim -O'
alias vir='vim -R'
# ls aliases
alias la='ls -A'
alias ll='ls -lh'
alias lla='ls -lhA'
# cd aliases
function cdl(){
if [ -n "$1" ]; then
cd "$1"
else
cd
fi
ls
}
# screen aliases
# changed to have -u for unicode support
alias t='tmux -u'
alias tls='tmux ls'
alias ta='tmux attach'
# git aliases
alias g='git'
alias gi='git init'
alias gs='git status'
alias ga='git add'
alias gaa='git add -A'
alias gac='git add -A; git commit'
alias gf='git fetch --prune'
alias gr='git rebase'
alias grm='git rebase origin/master'
alias gc='git commit'
alias gb='git branch'
alias gk='git checkout'
alias gkm='git checkout master'
alias gkd='git checkout develop'
alias gkb='git checkout -b'
alias gds='git diff --stat HEAD~1'
alias gp='git push'
alias gpo='git push origin'
alias gpom='git push origin master'
alias gm='git merge'
alias gmm='git merge --no-ff'
alias gd=gitdifftig
alias gl='git log -p | tig'
alias gg='git log --graph --oneline --all'
# misc aliases
alias less='less -r'
alias grep='grep --color=auto'
alias tree='tree -ACFr'
alias grind='valgrind --tool=memcheck --leak-check=full --show-reachable=yes --read-var-info=yes'
alias browse='nautilus --no-desktop "$PWD" &>/dev/null &!'
alias socks='ssh -fND'
alias ping-scan='nmap -sP -PE -R'
alias port-scan='nmap -p'
# local aliases
source ~/.aliasrc.local