From 0fc90e00edef05c5e7cbe7f0fca911a3ee9f9492 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 31 Aug 2016 02:11:12 +0100 Subject: [PATCH] gitcd use README --- etc/profile.d/git.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 1972f644..6dc9b47c 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -41,7 +41,8 @@ gitcd() { i=$(realpath "$i") # if dir stay there - [ -d "$i" ] && i="$i/.git" + #[ -d "$i" ] && i="$i/.git" + [ -d "$i" ] && i="$i/README.md" d=$(dirname "$i") -- 2.47.3