Created
July 10, 2018 02:28
-
-
Save eayoungs/35a9759027afad0ceb6580404d1ff4b7 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
## Bash one-liners | |
# find . -name "*.t1" -exec rename 's/\.t1$/.t2/' '{}' \; | |
# Git aware prompt | |
# https://github.com/jimeh/git-aware-prompt | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
export PS1="\[\033[0;32m\] \u@\h \[\033[0;33m\] \w$ \[\033[0m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
echo "export PATH=~/bin:$PATH" >> ~/.profile | |
# Homebrew | |
export PATH=/usr/local/bin:$PATH | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
source $(brew --prefix)/etc/bash_completion | |
fi | |
# Python virtual environments | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/Devel | |
source /usr/local/bin/virtualenvwrapper.sh | |
export PIP_REQUIRE_VIRTUALENV=true | |
gpip() { | |
PIP_REQUIRE_VIRTUALENV="" pip "$@" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment