-
I'm trying to use a fish shell function to start nnn automatically in tmux so the preview comes up without any extra commands. My command is currently This works, and most features work fine. I get very strange exit behaviors though:
If I run Any ideas what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out it's because when you run tmux with a command specified, it uses default tty settings, which have xon/xoff. If you run it with your shell first, it inherits those tty options which in my case, apparently, it turns those off. The example https://github.com/jarun/nnn/blob/master/misc/quitcd/quitcd.fish file shows the |
Beta Was this translation helpful? Give feedback.
Turns out it's because when you run tmux with a command specified, it uses default tty settings, which have xon/xoff. If you run it with your shell first, it inherits those tty options which in my case, apparently, it turns those off.
The example https://github.com/jarun/nnn/blob/master/misc/quitcd/quitcd.fish file shows the
stty
commands to fix this