bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: continuously evaluated prompts/environmental variables


From: Greg Wooledge
Subject: Re: continuously evaluated prompts/environmental variables
Date: Tue, 26 Nov 2013 07:42:16 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Nov 26, 2013 at 03:38:17AM -0500, Chris F.A. Johnson wrote:
> On Mon, 25 Nov 2013, Edward Peschko wrote:
> >Is there a way to have the prompt - or any other environmental
> >variable - change in this way, based off external command?
> 
>   Use single quotes:
> 
> PS1='`whoami`@`hostname`'

Just to be clear, this ONLY works for the PS1 variable.  Not in any
kind of generalized case.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]