Fix command "go up" goes to root
This commit is contained in:
parent
27aee4d5c9
commit
96e7746dbd
@ -96,6 +96,10 @@ __go_nav() {
|
|||||||
for i in "${!PWDA[@]}"
|
for i in "${!PWDA[@]}"
|
||||||
do
|
do
|
||||||
MARK=$i
|
MARK=$i
|
||||||
|
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
|
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user