fix(integration): Check for rest parameters in nushell integration
This commit is contained in:
parent
2c05ee9b19
commit
38f2600281
@ -4,8 +4,7 @@ def --wrapped --env p [...rest: string] {
|
|||||||
run-external {%PROJ_EXE%} ...$rest
|
run-external {%PROJ_EXE%} ...$rest
|
||||||
|
|
||||||
# The file will not exist if the prompt was aborted
|
# The file will not exist if the prompt was aborted
|
||||||
if ($selected_project | path exists) {
|
if ($rest | is-empty) and ($selected_project | path exists) {
|
||||||
let dir = open $selected_project
|
open $selected_project | cd $in
|
||||||
cd $dir
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user