diff --git a/bin/git-bug b/bin/git-bug index d46b93e..4ce5437 100755 --- a/bin/git-bug +++ b/bin/git-bug @@ -8,5 +8,4 @@ else test -z $1 && echo "bug required." && exit 1 branch=bug/$1 git checkout -b $branch &> /dev/null - git checkout $branch &> /dev/null fi diff --git a/bin/git-feature b/bin/git-feature index aa33d9d..29aacd0 100755 --- a/bin/git-feature +++ b/bin/git-feature @@ -8,5 +8,4 @@ else test -z $1 && echo "feature required." 1>&2 && exit 1 branch=feature/$1 git checkout -b $branch &> /dev/null - git checkout $branch &> /dev/null fi diff --git a/bin/git-refactor b/bin/git-refactor index 2b50fc4..e87143a 100755 --- a/bin/git-refactor +++ b/bin/git-refactor @@ -8,5 +8,4 @@ else test -z $1 && echo "refactor required." 1>&2 && exit 1 branch=refactor/$1 git checkout -b $branch &> /dev/null - git checkout $branch &> /dev/null fi diff --git a/bin/git-repl b/bin/git-repl index bdac2ea..90f2fcc 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -27,8 +27,13 @@ while true; do quit) break;; esac - # Execute - eval git "$cmd" + if [[ $cmd == !* ]]; then + eval ${cmd:1} + elif [[ $cmd == git* ]]; then + eval $cmd + else + eval git "$cmd" + fi done echo