code_junkie

SSH, screen and XDISPLAY

Nov 12th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # set future remote shells started by screen to have the correct XDISPLAY
  2. % screen -X "setenv XDISPLAY $DISPLAY" #...
  3.  
  4. # set up the keystroke F1 to update the XDISPLAY in current shells
  5. % screen -X "bindkey -k k1 stuff export XDISPLAY=$DISPLAY15" #...
  6.  
  7. # update the XDISPLAY in all current windows
  8. % screen -X "at % stuff export XDISPLAY=$DISPLAY15" #...
Add Comment
Please, Sign In to add comment