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

master
Jonathan Hodgson 4 years ago
parent 5aa76ee721
commit 0368bec228
  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