From: Nicolas Boisselier Date: Wed, 31 Aug 2016 01:11:12 +0000 (+0100) Subject: gitcd use README X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=0fc90e00edef05c5e7cbe7f0fca911a3ee9f9492;p=nb.git gitcd use README --- 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")