?

Log in

No account? Create an account
entries friends calendar profile Scribbles in the Dark Previous Previous Next Next
"This bash shell is now fully operational!" - Please Visit http://glyph.twistedmatrix.com/ - This Blog Is Closed.
Sorry about the ads, I can't turn them off.
glyf
glyf
"This bash shell is now fully operational!"
14 comments or Leave a comment
Comments
glyf From: glyf Date: July 11th, 2007 03:39 pm (UTC) (Link)

Re: Question about preexec.bash

Oh. That's unfortunate. Those variables are part of some pretty gratuitous hacks in my overall setup; I'll try to correct this "module" so that it doesn't require them.
From: lmjog Date: July 11th, 2007 04:08 pm (UTC) (Link)

Re: Question about preexec.bash

If possible if you could just share the info on how you set them. I use a setup with a couple of nested screens myself, and if I can read your script correctly, I like the idea how it presents itself.
glyf From: glyf Date: August 2nd, 2007 07:29 pm (UTC) (Link)

Re: Question about preexec.bash

Sorry for the long delay; I keep thinking I'll have time to eventually clean everything up and do a real release of my whole config.

In the meanwhile, just do this in your shell startup somewhere:
export SCREEN_HOST=`hostname -s`
then in your screenrc,
setenv SCREEN_RUN_HOST $SCREEN_HOST
setenv SCREEN_RUN_USER $USER

# Many sshd configurations accept "LC_*" environment variables.  Take advantage
# of that to sneak our environment variables over there.
setenv LC_SCREEN_RUN_HOST $SCREEN_HOST
setenv LC_SCREEN_RUN_USER $USER
14 comments or Leave a comment