diff --git a/home/gabriel/features/cli/nushell.nix b/home/gabriel/features/cli/nushell.nix index 8e906456..7c2a41b4 100644 --- a/home/gabriel/features/cli/nushell.nix +++ b/home/gabriel/features/cli/nushell.nix @@ -3,7 +3,7 @@ enable = true; extraConfig = /* nu */ '' def create_left_prompt [] { - let dir = match (do --ignore-shell-errors { $env.PWD | path relative-to $nu.home-path }) { + let dir = match (do --ignore-errors { $env.PWD | path relative-to $nu.home-path }) { null => $env.PWD ''' => '~' $relative_pwd => ([~ $relative_pwd] | path join)