Folder shell will now default to project path if no termial open
This commit is contained in:
parent
5aa76ee721
commit
0368bec228
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue