Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish doesn't respond to input, if process inside config.fish suspended (ctlr+z) #9781

Open
ArtAndreev opened this issue May 8, 2023 · 0 comments

Comments

@ArtAndreev
Copy link

I run tmux inside config.fish with the following code:

if status is-interactive && test -z "$TMUX"
    set -l tmux /opt/homebrew/bin/tmux
    $tmux attach -t main 2>/dev/null || test $status -le 128 && $tmux new -s main
end

Then if I suspend tmux-client with prefix key (ctrl+b), then ctrl+z, I get empty screen, where I can type, but shell doesn't respond to any command.

I tested the same with zsh, zsh suspends succesfully, that means I can run commands and resume tmux-client later.
Code for .zshrc:

if [ -z $TMUX ]; then
  tmux=/opt/homebrew/bin/tmux
  $tmux attach -t main 2>/dev/null || [ $? -le 128 ] && $tmux new -s main
  unset tmux
fi

OS: macOS 13.3.1 (a)
Terminal: alacritty 0.12.0
TERM (inside tmux): tmux-256color
TERM (outside tmux): alacritty
tmux: 3.3a
fish version: 3.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant