-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.zsh
66 lines (57 loc) · 1.67 KB
/
aliases.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
alias sz='source ~/.zshrc'
alias aliases="alias | sed -e 's/=/ = /' | less"
alias l='ls -alhG'
alias ll='ls -alhG'
alias lh='ls -dl .*' # show hidden files/directories only
alias filecount='find . -type f | wc -l' # number of files (not directories)
alias e='echo'
alias clr="clear"
alias bk='cd $OLDPWD'
### android
alias logcat='adb logcat -v time'
alias logd="adb logcat -v time -d > $1"
alias adbr='adb kill-server; adb start-server'
### git
alias g="git"
alias gco="git checkout"
alias gst="git status"
alias gl="git l" #requires .gitconfig
alias gll="git ll" #requires .gitconfig
alias gitdir="git rev-parse --git-dir"
alias gitroot="git rev-parse --show-toplevel"
alias gfo="git fetch origin"
alias gfj="git fetch jdkoren"
alias gfg="git fetch goog"
### repo
alias r="repo"
alias rsy="repo sync"
alias rst="repo status"
alias utsl='man' # http://www.hacker-dictionary.com/terms/UTSL
### Source: http://aur.archlinux.org/packages/lolbash/lolbash/lolbash.sh
alias wtf='dmesg'
alias onoz='cat /var/log/errors.log'
alias halp='man'
alias rtfm='man'
alias visible='echo'
alias invisible='cat'
alias moar='less'
alias icanhas='mkdir'
alias donotwant='rm'
alias dowant='cp'
alias gtfo='mv'
alias hai='cd'
alias plz='pwd'
alias inur='locate'
alias nomz='ps aux | less'
alias nomnom='killall'
alias cya='reboot'
alias kthxbai='halt'
### Mac OSX
if [[ $(uname) = 'Darwin' ]]
then
# fix bluetooth audio quality
alias fixbt="defaults write com.apple.BluetoothAudioAgent \"Apple Bitpool Min (editable)\" 53"
# turn on/off keyboard accent menu
alias accenton="defaults write -g ApplePressAndHoldEnabled -bool true"
alias accentoff="defaults write -g ApplePressAndHoldEnabled -bool false"
fi