aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6e0664a..77c1af5 100644
--- a/README.md
+++ b/README.md
@@ -131,7 +131,11 @@ bind '"\C-b":"bcd\n"'
For zsh, instead put this in your `~/.zshrc`:
```zsh
-bcd() { cd "$(bb -d "$@" <$TTY)"; }
+bcd() { # Change directory with bb
+ cd "$(bb -d "$@" <$TTY)"
+ precmd >/dev/null 2>/dev/null # If precmd sets your $PS1, you may need to re-run it
+ zle reset-prompt
+}
zle -N bcd
bindkey '^B' bcd
```