-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
56 lines (43 loc) · 1.8 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
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias cd..="cd .."
alias lsa="ls -a"
alias lsd='ls -l | grep "^d"' # only directories
alias g="git"
# mv, rm, cp
alias mv='mv -v'
alias rm='rm -v'
alias cp='cp -v'
# Shortcuts
alias d="cd ~/Documents/Dropbox"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias c="cd ~/code"
alias work="cd /Volumes/Storage/Work_git"
alias fpdoc="open /Users/benkiel/code/fontparts/source/fontParts/documentation/build/html/index.html"
alias activate="source bin/activate"
alias fdk="source ~/code/afdko_env/bin/activate"
# Clear DNS cache
alias clear-dns-cache="sudo dscacheutil -flushcache; \
sudo killall -HUP mDNSResponder"
# Empty the Trash on all mounted volumes and the main HDD. then clear the useless sleepimage
alias emptytrash=" \
sudo rm -rfv /Volumes/*/.Trashes; \
rm -rfv ~/.Trash/*; \
sudo rm -v /private/var/vm/sleepimage; \ \
"
# Hide/Show hidden files in Finder
alias hide-hidden-files="defaults write com.apple.finder AppleShowAllFiles -bool false \
&& killall Finder"
alias show-hidden-files="defaults write com.apple.finder AppleShowAllFiles -bool true \
&& killall Finder"
# Recursively delete `.DS_Store` files
alias cleanup="find . -name '*.DS_Store' -type f -ls -delete"
alias diskspace_report="df -P -kHl"
alias free_diskspace_report="diskspace_report"
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias brew_update="brew -v update; brew upgrade --force-bottle --cleanup; brew cleanup; brew cask cleanup; brew prune; brew doctor; npm-check -g -u"
# Stuff I never really use but cannot delete either because of http://xkcd.com/530/
alias stfu="osascript -e 'set volume output muted true'"
alias pumpitup="osascript -e 'set volume 7'"