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?= <>
    Message-ID:  <>

  | 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
	set -o promptcmds
or sh will refuse to execute it (since PS1 can be imported from the


Home | Main Index | Thread Index | Old Index