From 8e46e6c4a4c05fc00cbf745eddf70798150f2ba0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 15 Jun 2019 16:20:06 -0700 Subject: Added comment about /dev/tty --- config.def.h | 5 +++++ 1 file changed, 5 insertions(+) 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 ""` * + * 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. -- cgit v1.2.3