Skip to content

Commit 92acb96

Browse files
authored
Fixed entering into rust folder
1 parent 54f10ee commit 92acb96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nu-hooks/nu-hooks/rusty-paths/rusty-paths.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $env.config = ($env.config | upsert hooks.env_change.PWD {
2323
}
2424
}
2525
| append {
26-
condition: {|before, _| ($before | default '' | path join 'Cargo.lock' | path exists) }
26+
condition: {|before, _| ($before | default '' | path join 'Cargo.lock' | path exists) and ($before | is-not-empty)}
2727
code: {|before, _|
2828
$env.PATH = (
2929
$env.PATH

0 commit comments

Comments
 (0)