[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: continuously evaluated prompts/environmental variables
From:       Greg Wooledge <wooledg () eeg ! ccf ! org>
Date:       2013-11-26 12:42:16
Message-ID: 20131126124216.GO3803 () eeg ! ccf ! org
[Download RAW message or body]

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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic