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
|
||||
|
||||
# The file will not exist if the prompt was aborted
|
||||
if ($selected_project | path exists) {
|
||||
let dir = open $selected_project
|
||||
cd $dir
|
||||
if ($rest | is-empty) and ($selected_project | path exists) {
|
||||
open $selected_project | cd $in
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user