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.
Top comments (0)