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)
fi
fi
current="$(project current --path)"
if [ -n "$CWD" ]; then
cd "$CWD" && $CMD
elif [ -n "$current" ]; then
cd "$current" && $CMD
else
$CMD
fi

Loading…
Cancel
Save