-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
28 lines (22 loc) · 975 Bytes
/
.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
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias l='ls -lhG'
alias ll='ls -lhGa'
alias clear='printf "\033c"'
alias v='vim'
alias g='git'
alias localip="ipconfig getifaddr en1"
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\""
alias ip="curl -s http://checkip.dyndns.com/ | sed 's/[^0-9\.]//g'"
# OS X Specific ----------
if [[ ${OSTYPE//[0-9.]/} == "darwin" ]]; then
alias v='mvim --remote-silent'
alias c="pbcopy"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.Finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool false && killall Finder"
# Hide/show all desktop icons (useful when presenting)
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
fi