From ce888d0664ac210c746f724efffeda6e4b8558a4 Mon Sep 17 00:00:00 2001 From: Florian H Date: Sun, 3 Mar 2013 16:24:07 +0100 Subject: [PATCH] Execute a shell command, if the command is prefixed with ! --- bin/git-repl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/git-repl b/bin/git-repl index bdac2ea..a097fd1 100755 --- a/bin/git-repl +++ b/bin/git-repl @@ -27,8 +27,11 @@ while true; do quit) break;; esac - # Execute - eval git "$cmd" + if [[ $cmd == !* ]]; then + eval ${cmd:1} + else + eval git "$cmd" + fi done echo