Last active
March 17, 2016 21:35
-
-
Save Cspeisman/db800590770790129422 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
eval "$(rbenv init -)" | |
export PATH=/usr/local/bin:$PATH | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source $GITAWAREPROMPT/main.sh | |
export PS1="\u: \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
### Aliases | |
alias bx='bundle exec' | |
alias pyenv='source /usr/local/bin/virtualenvwrapper.sh; workon default' | |
alias capwords='source /usr/local/bin/virtualenvwrapper.sh; workon capwords' | |
### edits random entry in the CWD | |
alias vimr='vim "`ls | gshuf -n1`"' | |
### makes virtualenv with python3 | |
alias mkvirtualenv3='mkvirtualenv --python=$(which python3)' | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
### Python server | |
function www() { | |
port=${1} | |
python -m SimpleHTTPServer $port | |
} | |
### opens localhost to whatever port you supply it | |
function openbrowser() { | |
port=${1} | |
localhost="http://localhost:" | |
open $localhost$port | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment