Oh, I'm dumb. Leave it to me to ask right before I figure it out.
After years of using screen with this problem, I finally figured out
what the problem was:
I had set up a separate .bashrc to deal with setting screen-related
things which checked the existence of $STY (which screen sets when it
opens a prompt) before it continues. Apparently `su -' unsets that
variable.
On Dec 4, 8:37 am, h3xx <[EMAIL PROTECTED]> wrote:
> I have my .screenrc configured to automatically insert the current
> typed command name after "bash:" in the title of the tab like so:
>
> shelltitle '$ |bash'
>
> This works because my prints a dollar sign and a space ("$ ") at the
> end of the prompt.
>
> I set up $PS1 to end in '\$ ', so it will end the line with a dollar
> sign if you're a regular user, and a pound sign ("#") if you're root.
>
> I set up a key command in ~/.screenrc to get me a `su -' terminal like
> so:
>
> bind R screen -t '# |root:' su -
>
> My problem is that my root console prompt ends in "# " and screen
> doesn't seem to want to insert the command after the "root:". Is there
> any way to get it to do this?
>
> I'm using screen 4.0.3 and bash 3.1.017
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---