Skip to content

Instantly share code, notes, and snippets.

@johnskopis
Created April 25, 2018 18:12
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 johnskopis/3ed88358445c2b691bff545971488f40 to your computer and use it in GitHub Desktop.
Save johnskopis/3ed88358445c2b691bff545971488f40 to your computer and use it in GitHub Desktop.
Host github.com
PermitLocalCommand no
Host *
RequestTTY force
RemoteCommand env term=$TERM TERM=xterm-256color bash -i -c 'export PROMPT_COMMAND='"'"'if [ x"$term" == "xxterm-256colour" ]; then es=$"\033]0;"; else es=$"\033k"; fi; printf "$es%%s@%%s:%%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'"'"'; bash -i'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment