Last active
December 19, 2015 17:58
-
-
Save AutoSponge/5994771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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