From 4560e1ee5810e48e33bf7efb5d06990269b93866 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 8 Mar 2016 23:55:28 +0000 Subject: [PATCH] Add gitcd --- etc/profile.d/git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index efb5d11e..8bcbb629 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -25,8 +25,8 @@ gitcd() { done [ -z "$dir" ] && echo "Can't find any file in $@" && return 1 #echo $dir - #git ${args} - git commit /opt/nb/etc/profile.d/git.sh -m "Add gitcd" + eval git ${args} + #git commit /opt/nb/etc/profile.d/git.sh -m "Add gitcd" cd "$pwd" } -- 2.47.3