From 7c02de4c0ca7bebe81be9e9d617ddf3c7e262578 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Mon, 19 Feb 2018 02:24:33 +0530 Subject: [PATCH] Added pull and enhanced mkr-update to require no shell restart --- scripts/mkr.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/mkr.sh b/scripts/mkr.sh index ec117e6..67d73e8 100644 --- a/scripts/mkr.sh +++ b/scripts/mkr.sh @@ -47,6 +47,16 @@ rmd () { # Git commands +## pull +## Usage: pull [remote branch] +pull () { + if [ "$1" ]; then + git pull "$1" "$2" + else + git pull + fi +} + ## commit ## Usage: commit commit () { @@ -94,4 +104,5 @@ stop () { ## Usage: mkr-update mkr-update () { curl https://raw.githubusercontent.com/MKRhere/wiki/master/scripts/mkr.sh -o ~/.mkr/mkr.sh + source ~/.mkr/mkr.sh } \ No newline at end of file