citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

grabssh (251B)


      1 #!/bin/sh
      2 SSHVARS="SSH_CLIENT SSH_TTY SSH_AUTH_SOCK SSH_CONNECTION DISPLAY"
      3 
      4 for x in ${SSHVARS} ; do
      5     (eval echo $x=\$$x) | sed  's/=/="/
      6                                 s/$/"/
      7                                 s/^/export /'
      8 done 1>$HOME/bin/fixssh