Skip to content

Instantly share code, notes, and snippets.

@edele
Created November 22, 2015 11:57
Show Gist options
  • Select an option

  • Save edele/dadb692df08dcbd7824b to your computer and use it in GitHub Desktop.

Select an option

Save edele/dadb692df08dcbd7824b to your computer and use it in GitHub Desktop.
dotfiles
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias s="cd ~/Sites"
alias t="cd ~/Tests"
alias wrk="cd ~/Work"
alias ll='ls -alF'
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'
alias ga='git add --all'
alias gs='git status'
alias gc='git commit -m'
alias gp='git push'
alias server='php -S localhost:8080'
# View HTTP traffic
alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'"
alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\""
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
# 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"
# Ring the terminal bell, and put a badge on Terminal.app’s Dock icon
alias badge="tput bel"
# added by travis gem
[ -f /Users/edele/.travis/travis.sh ] && source /Users/edele/.travis/travis.sh
# unix epoch time
alias timestamp='date +%s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment