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
# stash and update all the repos under this base dir | |
stupd(){ | |
cur_dir=$(pwd) | |
echo "Location : " $cur_dir | |
# get all git repos under the cur dir | |
for i in $(find . -name ".git" | rev | cut -f 2- -d '.' | rev); do | |
echo 'Repo : ' $i | |
# switch into the git repo | |
cd $i |
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
alias al="ls -a" | |
alias all="ls -altr" | |
alias l="pwd" | |
alias cd2="cd ../.." | |
alias cd4="cd ../../../../" | |
alias cd6="cd ../../../../../../" | |
#search | |
search(){ | |
grep -rnw . -e $1 |