Skip to content

Commit 5585558

Browse files
Louis-Simon22flqd14ey2
andauthored
Added explanation on how to stay in the cwd on death (#154)
Co-authored-by: flqd14ey2 <flqd14ey2@mozmail.com>
1 parent f1ae652 commit 5585558

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

shell/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,16 @@ cd () {
135135
rpg-cli battle
136136
}
137137
```
138+
139+
### Staying in the current work directory on death
140+
141+
By default the shell integrations will send the user back to the home directory after death. To prevent this, we can change back to the current directory after each battle
142+
143+
For example for cd:
144+
```sh
145+
cd () {
146+
builtin cd "$@"
147+
rpg-cli cd -f .
148+
rpg-cli battle; rpg-cli cd -f .
149+
}
150+
```

0 commit comments

Comments
 (0)