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.