Skip to content

Instantly share code, notes, and snippets.

@darklight721
Last active August 29, 2015 14:21
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 darklight721/9ae1460b28a53cf37479 to your computer and use it in GitHub Desktop.
Save darklight721/9ae1460b28a53cf37479 to your computer and use it in GitHub Desktop.
My bash profile
export PS1="\[\e[1;34m\]\u@\h\[\e[0m\]:\[\e[1;36m\]\W\[\e[0m\]$ "
alias ll="ls -ahlFG"
alias rmd="rm -rf"
alias fsize="stat -f%z"
alias finder="open -a Finder ./"
mcd() { mkdir "$1" && cd "$1"; }
gitr() {
local branch=`git branch | sed -n '/\* /s///p'`
git stash
git fetch
git reset --hard origin/"$branch"
git stash pop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment