Skip to content

Instantly share code, notes, and snippets.

@skimbrel
Created April 18, 2012 01:04
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 skimbrel/2410257 to your computer and use it in GitHub Desktop.
Save skimbrel/2410257 to your computer and use it in GitHub Desktop.
#!/bin/sh
SSHV="SSH_CLIENT SSH_TTY SSH_AUTH_SOCK SSH_CONNECTION DISPLAY"
for x in ${SSHV} ; do
(eval echo $x=\$$x) | sed 's/=/="/
s/$/"/
s/^/export /'
done 1>$HOME/.bash_helpers/fixssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment