From 52872aca352eaf16fe2bf6671b1381d7ac01465d Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sat, 17 Feb 2018 11:53:21 +0530 Subject: [PATCH] Added comments to script --- scripts/mkr.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/mkr.sh b/scripts/mkr.sh index e27cc67..dadf37c 100644 --- a/scripts/mkr.sh +++ b/scripts/mkr.sh @@ -1,3 +1,8 @@ +# mkr.sh +## A list of commands to simplify my life +## Read carefully, use at your own risk +## Add 'source path/to/mkr.sh' in your ~/.bashrc or ~/.zshrc + # Simpler apt commands alias update="sudo apt-get update" @@ -12,12 +17,14 @@ alias install="sudo apt-get install" # Directory management +## mk ## Makes a new directory and enters it mk () { mkdir "$1" cd "$_" } +## Usage: rmd [dir] ## Use with caution: Removes current working directory and changes to one up level ## If an argument is passed, simply deletes that file or folder from current working directory @@ -33,7 +40,7 @@ rmd () { # Git commands -## push "Commit Message" origin master +## Usage: push "" [remote branch] ## if only commit message is present, pushes to default upstream push () {