Skip to content

Instantly share code, notes, and snippets.

@milesrichardson
Last active November 5, 2019 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milesrichardson/9937f9373b26c75ed286255015fda06e to your computer and use it in GitHub Desktop.
Save milesrichardson/9937f9373b26c75ed286255015fda06e to your computer and use it in GitHub Desktop.
How to stop weird characters being inserted on paste in tmux

ChrisJohnsen/tmux-MacOSX-pasteboard#31 (comment)

What happens if you paste (in a pane where you see the problem) while running cat -v? Do you see something like ^[[200~hello world^[[201~? If so, what you are seeing is bracketed paste mode.

You should be able to turn the mode off by running printf '\e[?2004l'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment