fix(integration): Check for rest parameters in nushell integration

This commit is contained in:
Patrick Auernig 2024-11-28 15:20:02 +01:00
parent 2c05ee9b19
commit 38f2600281

View File

@ -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
}
}