Re: Access environment variables in screenrc

Jürgen Weigert <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAMPiZwD0d=eS1pT2L4sUQgPbfT_exAQO+c4UFmkaJAQKRvxC-Q@mail.gmail.com>
When I put this line in my ~/.screenrc

screen 7 env shelltitle="window 7 at $HOSTNAME" bash


then screen will create a shell in window 7, that has the machine's
hostname as part of its shelltitle env variable.

cheers, JW-

On Sat, Mar 7, 2015 at 1:02 PM, John Blakeman <[email protected]> wrote:
> I'd like to be able to put something like:
>
>     shelltitle "$HOSTNAME"
>
> in my screenrc, and have it work.
>
> Furthermore, I'd like to access any environment variable in my screenrc that
> isn't a screen specific environment variable.  Is this possible?
>
> Thanks,
>
> John
>
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.