Bash Utilities
- Clone/Download the repository
- Add the following lines of code in your ~/.bashrc file
where ~/basher is the folder in which you downloaded/cloned the repository
if [ -f ~/basher/bashrc ]; then
. ~/basher/bashrc
fi
3.Source your existing bashrc file
source ~/.bashrc
- gs : git status
- gpl $branchName : git pull origin $branchName
- gps $branchName : git push origin $branchName
- gcp $branchname : git checkout $branchname && git pull
- gcpm : git checkout master && git pull
- gc : git checkout
- gd : git diff
- gm $commitMsg : git commit -am $commitMsg
- gcap $commitMsg $branchName : gitCommitAndPush $commitMsg $branchName
- wdbu : (acronym for work done by user, lists the no. of lines added and removed by each developer)
- ccbu : (acronym for commit count by user, lists the developer and the no. of commits added by them)
- makem $migrationName: Make Sequelize migration
- rumn : Run Sequelize migration
- na : nodemon app.js
- fs $processName : forever start $processName
- frall : forever restartAll
- sol : source ~/.bashrc (Source the current bashrc file)
- updateThenUpgrade : Ubuntu Update and Upgrade
- findDuplicates $filename :Recursively searches consecutive duplicate lines of code in a folder