Skip to content

Instantly share code, notes, and snippets.

View midNight-jam's full-sized avatar
💭
[0_0]

Jayam Malviya midNight-jam

💭
[0_0]
View GitHub Profile
@midNight-jam
midNight-jam / stupd.sh
Last active November 16, 2017 00:48
stupd : Stash and Update, all git repos under the current dir, with stashing the changes, pulling the latest and applying the stashed changes over again.
# 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
@midNight-jam
midNight-jam / .bash_profile
Last active December 21, 2017 22:34
zzBashProfile [-_-]
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