Skip to content

Instantly share code, notes, and snippets.

@pablodgonzalez
Created June 26, 2016 23:23
Show Gist options
  • Save pablodgonzalez/08abfefa0203152149f7776a5dded043 to your computer and use it in GitHub Desktop.
Save pablodgonzalez/08abfefa0203152149f7776a5dded043 to your computer and use it in GitHub Desktop.
Useful bash function for development
export PIP_REQUIRE_VIRTUALENV=true
#use pip globally
gpip(){
PIP_REQUIRE_VIRTUALENV="" pip "$@"
}
#use git recursively
rgit(){
echo "ENTER ./"
git "$@"
echo "NEXT.."
read
for d in ./* ; do
if [[ -d "$d" && -d "$d"/.git ]]; then
echo "ENTER $d"
cd $d
git "$@"
cd ..
echo "NEXT.."
read
fi
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment