Skip to content

Instantly share code, notes, and snippets.

@jhanstra
Created March 18, 2015 14:17
Show Gist options
  • Save jhanstra/d114ed552fb0d7e5cc81 to your computer and use it in GitHub Desktop.
Save jhanstra/d114ed552fb0d7e5cc81 to your computer and use it in GitHub Desktop.
.aliases
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# Handy things
# alias spotify="osascript ~/code/SpotifyControl/SpotifyControl.scpt"
# List all files colorized in long format
alias l="ls -l ${colorflag}"
# List all files colorized in long format, including dot files
alias la="ls -la ${colorflag}"
# List only directories
alias lsd='ls -l | grep "^d"'
# `cat` with beautiful colors. requires Pygments installed.
alias c='pygmentize -O style=monokai -f console256 -g'
# IP addresses
alias localip="ipconfig getifaddr en1"
# Recursively delete `.DS_Store` files
alias cleanup="find . -name '*.DS_Store' -type f -ls -delete"
# Shortcuts
alias g="git"
alias v="vim"
alias gs="git status"
alias gss="git status -s"
alias gb="git branch"
alias gba="git branch -a"
alias gl="git log --pretty=oneline -n 20 --graph --abbrev-commit"
alias s="spotify toggle"
alias sp="spotify prev"
alias sn="spotify next"
alias s+="spotify vol up"
alias s-="spotify vol down"
alias spot="spotify"
alias ss="spotify status"
alias tom="/Users/hanstra/apps/tomcat/tomcat/bin/startup.sh"
alias tomstop="/Users/hanstra/apps/tomcat/tomcat/bin/shutdown.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment