Skip to content

Instantly share code, notes, and snippets.

@ichizok
Last active March 1, 2017 17:17
Show Gist options
  • Select an option

  • Save ichizok/c6b1019301ce2d53977a15a0afc4da52 to your computer and use it in GitHub Desktop.

Select an option

Save ichizok/c6b1019301ce2d53977a15a0afc4da52 to your computer and use it in GitHub Desktop.
restore window name
# restore window name
[[ "$@" =~ BatchMode=yes ]] || echo -ne '\e[22;0t'
command ssh "$@"
[[ "$@" =~ BatchMode=yes ]] || echo -ne '\e[23;0t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment