Skip to content

Instantly share code, notes, and snippets.

@mdogo
Last active August 29, 2015 14:07
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 mdogo/98372b193891dcbf80b6 to your computer and use it in GitHub Desktop.
Save mdogo/98372b193891dcbf80b6 to your computer and use it in GitHub Desktop.
A bash recipe to mantain your config organized.
# [...]
# 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
#!/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
#!/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