Skip to content

Commit cd6ddba

Browse files
committed
Add cd to title of Changing Directories in a Custom Command section for searchability
1 parent 469ecab commit cd6ddba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/custom_commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ $env.FOO
899899
# => After
900900
```
901901

902-
### Changing Directories in a Custom Command
902+
### Changing Directories (cd) in a Custom Command
903903

904904
Likewise, changing the directory using the `cd` command results in a change of the `$env.PWD` environment variable. This means that directory changes (the `$env.PWD` variable) will also be reset when a custom command ends. The solution, as above, is to use `def --env` or `export def --env`.
905905

0 commit comments

Comments
 (0)