Push your code on Github like Pro
ritik
Posted on July 22, 2022
I never liked to typing 4 commands each time for pushing your code to github.
So i have created a alias for that and with also random commits name.
paste the below code to your default shellrc
file.
#Get random gibbrish word
get_random(){
random_commit=`shuf /usr/share/dict/cracklib-small | awk 'FNR == 1 { print $1 }'`
}
alias gpm='get_random; git add .; git commit -m ${random_commit}; git push origin main'
make sure you have file located at /usr/share/dict/cracklib-small
. For my system Manjaro cracklib-small
file consists of lots of english dictionary words.
For you system it maybe different.
π πͺ π
π©
ritik
Posted on July 22, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.