Last active
August 29, 2015 14:07
-
-
Save mdogo/98372b193891dcbf80b6 to your computer and use it in GitHub Desktop.
A bash recipe to mantain your config organized.
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
# [...] | |
# Instead of adding a lot of changes to my .bashrc files I split | |
# those changes in small files and put those files in a .bash directory. | |
if [ -d ~/.bash/ ]; then | |
for script in ~/.bash/*; do | |
if [ -f $script ]; then | |
. "$script" | |
fi | |
done | |
fi |
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
#!/bin/bash | |
# Using https://github.com/magicmonty/bash-git-prompt.git | |
if [ -f "~/.bash/bash-git-prompt/gitprompt.sh" ]; then | |
source ~/.bash/bash-git-prompt/gitprompt.sh | |
fi |
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
#!/bin/bash | |
# VirtualEnv Wrapper initialization | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/projects | |
source /usr/local/bin/virtualenvwrapper.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment