Browse Source

Added comments to script

pull/1/head
Muthu Kumar 7 years ago
parent
commit
10c77cbc87
  1. 20
      scripts/mkr.sh

20
scripts/mkr.sh

@ -17,13 +17,15 @@ alias install="sudo apt-get install"
# Directory management # Directory management
## mk <dir> ## mk
## Usage: mk <dir>
## Makes a new directory and enters it ## Makes a new directory and enters it
mk () { mk () {
mkdir "$1" mkdir "$1"
cd "$_" cd "$_"
} }
## rmd
## Usage: rmd [dir] ## Usage: rmd [dir]
## Use with caution: Removes current working directory and changes to one up level ## 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 ## If an argument is passed, simply deletes that file or folder from current working directory
@ -40,7 +42,15 @@ rmd () {
# Git commands # Git commands
## Usage: push "<Commit Message>" [remote branch] ## commit
## Usage: commit <commit-message>
commit () {
git add .
git commit -m "$1"
}
## push
## Usage: push <commit-message> [remote branch]
## if only commit message is present, pushes to default upstream ## if only commit message is present, pushes to default upstream
push () { push () {
@ -55,14 +65,20 @@ push () {
# Systemctl commands # Systemctl commands
## status
## Usage: status <daemon>
status () { status () {
sudo systemctl status "$1" sudo systemctl status "$1"
} }
## start
## Usage: start <daemon>
start () { start () {
sudo systemctl start "$1" sudo systemctl start "$1"
} }
## stop
## Usage: stop <daemon>
stop () { stop () {
sudo systemctl stop "$1" sudo systemctl stop "$1"
} }
Loading…
Cancel
Save