aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-06-15 16:20:06 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-06-15 16:20:06 -0700
commit8e46e6c4a4c05fc00cbf745eddf70798150f2ba0 (patch)
tree5fe9ee92ea018601362d7ce98cd284818d3423a5
parent2f70e8a9ba91b6185a81a954b62ddd1c2d6e0006 (diff)
Added comment about /dev/tty
-rw-r--r--config.def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index c63d596..3629a70 100644
--- a/config.def.h
+++ b/config.def.h
@@ -164,6 +164,11 @@ const char *startupcmds[] = {
* Please note that these are sh scripts, not bash scripts, so bash-isms
* won't work unless you make your script use `bash -c "<your bash script>"`
*
+ * All output should be redirected to /dev/tty, otherwise cd "$(bb -d)" will
+ * break because stdout will be polluted with all the keybindings that spammed
+ * stdout. Similarly, user input should be pulled from /dev/tty so anything
+ * piped into bb won't be misinterpreted as user input.
+ *
* If your editor is vim (and not neovim), you can replace `$EDITOR` below with
* `vim -c 'set t_ti= t_te=' "$@"` to prevent momentarily seeing the shell
* after editing.