Date: Mon, 05 Nov 2018 19:23:08 +0000 From: =?UTF-8?Q?C=C3=A1g?= <c...@bitmessage.ch> Message-ID: <db4336cf72635c22cc46753610269...@bitmessage.ch>
| 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