]> git.wh0rd.org Git - home.git/commitdiff
filter out options to expanded commands
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Aug 2012 18:22:33 +0000 (14:22 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 16 Aug 2012 18:22:33 +0000 (14:22 -0400)
.bin/r

diff --git a/.bin/r b/.bin/r
index 6496e1d6c3db4613a434e7d42ac876cb9b106308..08edfe2fffed538a44ec132eff24e2cafb84ba19 100755 (executable)
--- a/.bin/r
+++ b/.bin/r
@@ -16,7 +16,7 @@ s)
 *)
        cmd=$1
        shift
-       acmd=$(git config --get "alias.${cmd}")
+       acmd=$(git config --get "alias.${cmd}" | sed 's: -.*::')
        ;;
 esac