Created
June 26, 2016 23:23
-
-
Save pablodgonzalez/08abfefa0203152149f7776a5dded043 to your computer and use it in GitHub Desktop.
Useful bash function for development
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
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