diff --git a/.bin/tmux-projectinator b/.bin/tmux-projectinator index 1c838df..247ed6b 100755 --- a/.bin/tmux-projectinator +++ b/.bin/tmux-projectinator @@ -56,7 +56,9 @@ PROJECT_LIST=$(find ~/* -name .git -type d -prune 2>/dev/null) SELECTED=$(echo $PROJECT_LIST | sed 's/\/.git/\n/g' | sed "s/$(echo $HOME | sed 's/\//\\\//g')//" | cut -d'/' -f2- | fzf) -PROJECT_PATH=$(echo $PROJECT_LIST | sed 's/\/.git/\n/g' | grep $SELECTED) +debug "Selected $SELECTED" + +PROJECT_PATH=$(echo $PROJECT_LIST | sed 's/\/.git/\n/g' | grep "${SELECTED}$") PROJECT_ROOT=$(echo $SELECTED | cut -d '/' -f1) PROJECT_NAME=$(echo $SELECTED | rev | cut -d '/' -f1 | rev)