Skip to content

Instantly share code, notes, and snippets.

@olund
Created February 14, 2014 09:21
Show Gist options
  • Save olund/8998166 to your computer and use it in GitHub Desktop.
Save olund/8998166 to your computer and use it in GitHub Desktop.
alias commit='git commit -m'
alias l='ls -lF'
#trolol alias because of http://xkcd.com/530
alias highvolume="osascript -e 'set volume 7'"
alias mute="osascript -e 'set volume output muted true'"
# List only directories
alias lsd='ls -l ${colorflag} | grep "^d"'
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
#editor
alias ee="pico"
# Shortcuts
alias d="cd ~/Dropbox"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias sites="cd ~/Dropbox/sites"
alias vim="vi"
alias s="subl ."
PROMPT="%{$(tput bold)%}%{$(tput setaf 1)%}❯%{$(tput setaf 4)%}❯%{$(tput setaf 3)%}❯ %{$(tput sgr0)%}"
RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment