diff --git a/src/integrations/nushell.nu b/src/integrations/nushell.nu index 6d9910e..0477600 100644 --- a/src/integrations/nushell.nu +++ b/src/integrations/nushell.nu @@ -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 } }