Last active
August 29, 2015 14:21
-
-
Save darklight721/9ae1460b28a53cf37479 to your computer and use it in GitHub Desktop.
My bash profile
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
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