Folder shell will now default to project path if no termial open

Jonathan Hodgson 4 years ago
parent 4ef857d357
commit fd9aedf930
  1. 3
      bin/.bin/folder-shell

@ -26,8 +26,11 @@ if [ -n "$PID" ]; then
CWD=$(readlink /proc/$PID/cwd) CWD=$(readlink /proc/$PID/cwd)
fi fi
fi fi
current="$(project current --path)"
if [ -n "$CWD" ]; then if [ -n "$CWD" ]; then
cd "$CWD" && $CMD cd "$CWD" && $CMD
elif [ -n "$current" ]; then
cd "$current" && $CMD
else else
$CMD $CMD
fi fi

Loading…
Cancel
Save