From 0b0308cb646411185fe63d7a3d741c693992c5da Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 6 Sep 2020 10:03:57 -0500 Subject: [PATCH] For try_git print out the directory cd'd to similar to cd - --- dotprofile.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotprofile.org b/dotprofile.org index 0955a46..b624074 100644 --- a/dotprofile.org +++ b/dotprofile.org @@ -260,7 +260,10 @@ try_git() fi fi else - [ -d "${repo}" ] && cd "${repo}" + if [ -d "${repo}" ]; then + echo "${repo}" | sed -e "s|$HOME|~|" + cd "${repo}" + fi fi }