Skip to content

Instantly share code, notes, and snippets.

@dimfeld
Last active February 6, 2018 01:57
Show Gist options
  • Save dimfeld/bb46848f8b9a73b3ca763759a51b90ff to your computer and use it in GitHub Desktop.
Save dimfeld/bb46848f8b9a73b3ca763759a51b90ff to your computer and use it in GitHub Desktop.
run ssh and then disable mouse reporting
#!/bin/bash
# Run ssh and then disable mouse reporting. This is so that mouse scrolling
# will work properly in the local session if a tmux session drops.
/usr/bin/ssh "$@"
EXITCODE=$?
if tty -s; then
printf '\e[?1000l'
fi
exit $EXITCODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment