Skip to content

Instantly share code, notes, and snippets.

@hilbix
Created July 25, 2017 08:12
Show Gist options
  • Save hilbix/0ab554da7295a8a2cf5840a349cb9a34 to your computer and use it in GitHub Desktop.
Save hilbix/0ab554da7295a8a2cf5840a349cb9a34 to your computer and use it in GitHub Desktop.
Fix garbled tmux

https://unix.stackexchange.com/a/253369

stty sane; printf '\033k%s\033\\\033]2;%s\007' "`basename "$SHELL"`" "`uname -n`"; tput reset; tmux refresh

tmux list-windows -a | while IFS=: read -r a b c; do tmux set-window-option -t "$a:$b" automatic-rename on; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment