From fd9aedf93012f5c98ba1d54234e1883aeca09abc Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 13 Feb 2021 20:17:01 +0000 Subject: [PATCH] Folder shell will now default to project path if no termial open --- bin/.bin/folder-shell | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/.bin/folder-shell b/bin/.bin/folder-shell index 700fe0de..3d15ea54 100755 --- a/bin/.bin/folder-shell +++ b/bin/.bin/folder-shell @@ -26,8 +26,11 @@ if [ -n "$PID" ]; then CWD=$(readlink /proc/$PID/cwd) fi fi +current="$(project current --path)" if [ -n "$CWD" ]; then cd "$CWD" && $CMD +elif [ -n "$current" ]; then + cd "$current" && $CMD else $CMD fi