Adjusts project management for para
This commit is contained in:
parent
8e9073bd2d
commit
01371ba3b6
4 changed files with 12 additions and 4 deletions
|
@ -13,8 +13,12 @@ function print_help(){
|
|||
function auto_switch(){
|
||||
local switchto
|
||||
if echo "$PWD" | grep -q "$PROJECTS_PATH"; then
|
||||
switchto=$( echo "$PWD" | sed "s#$PROJECTS_PATH/##")
|
||||
switchto="${switchto%/*}"
|
||||
switchto="$( echo "$PWD" | sed "s#$PROJECTS_PATH/##")"
|
||||
switchto="$(echo "$switchto" | cut -d '/' -f 1,2)"
|
||||
if [[ "$switchto" != *'/'* ]]; then
|
||||
echo "no /"
|
||||
switchto="--unset"
|
||||
fi
|
||||
if [[ "$PWD" == "$PROJECTS_PATH" ]]; then
|
||||
switchto="--unset"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue