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`'
Pierre Gaston writes:
> PS1='`whoami`@`hostname`'
PS1='\u@\h'
Andreas.
--
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
On Tue, Nov 26, 2013 at 7:21 AM, Edward Peschko wrote:
> All,
>
> I was wondering if there was a way to make an environmental variable
> be evaluated each time it was accessed. In other words, with:
>
> export PS1="`whoami`@`hostname`"
>
> This works for the first time that the prompt is evaluate
On Mon, 25 Nov 2013, Edward Peschko wrote:
All,
I was wondering if there was a way to make an environmental variable
be evaluated each time it was accessed. In other words, with:
export PS1="`whoami`@`hostname`"
This works for the first time that the prompt is evaluated, what I
would like to
All,
I was wondering if there was a way to make an environmental variable
be evaluated each time it was accessed. In other words, with:
export PS1="`whoami`@`hostname`"
This works for the first time that the prompt is evaluated, what I
would like to have is a prompt to be continuously evaluated,