Skip to content

Instantly share code, notes, and snippets.

@AutoSponge
Last active December 19, 2015 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AutoSponge/5994771 to your computer and use it in GitHub Desktop.
Save AutoSponge/5994771 to your computer and use it in GitHub Desktop.
# allows bash-completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# displays the user, full path (next line) working directory and branch (if git repo)
export PS1='\u[\w]\n[\W]$(__git_ps1 "(%s)"): '
# ls shortcuts
alias ..='cd ..'
alias ls='ls -G'
alias ll='ls -Gl'
alias l.='ls -Gd .*'
# function for setting terminal titles in OSX
function title {
printf "\033]0;%s\007" "$1"
}
# shotcut to starting a simple server
alias simpleserver='python -m SimpleHTTPServer'
# shortcuts for directories
alias repos='cd ~/GitHub'
alias lilly='cd ~/GitHub/lilly'
# shortcuts for this file
alias mybash='cd ~;vi .bash_profile'
alias rbash='source ~/.bash_profile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment