Current-Users archive

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

Re: Some (small) problems



    Date:        Mon, 05 Nov 2018 19:23:08 +0000
    From:        =?UTF-8?Q?C=C3=A1g?= <ca6c%bitmessage.ch@localhost>
    Message-ID:  <db4336cf72635c22cc46753610269ec9%bitmessage.ch@localhost>


  | 3. I lost my .shrc, and now I can't get my PS1 to work. I think I used 
  | to use this:
  | --
  | PS1='[$( pwd | sed "s,^$HOME,~," )]; '    # which is [~]; when at home
  | --
  | but now it doesn't work.

It should, there is nothing in the processing of that which cares about
whether sh is dynamically linked or not.

However, because you have a command substitution in there, you also
need
	set -o promptcmds
or sh will refuse to execute it (since PS1 can be imported from the
environ).

kre



Home | Main Index | Thread Index | Old Index