Re: Tweeking PS1

RVP <[email protected]> Wed, 17 Jun 2026 07:08:34 +0000 (UTC)
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
> If I run it inside of shell (in .xinitrc) it fails.
> PS1 is the borning black in a X window.
> I use xdm to login.
>
> Is there a right way to start this when I login??
>

mlelstv@ has already answered this here:

https://mail-index.netbsd.org/netbsd-users/2026/06/08/msg034316.html

You can also pull in the file in ~/.shrc:

```
[...]
case "$-" in *i*)
 	# interactive mode settings go here
 	test -r ~/lib/ps1.ksh && . ~/lib/ps1.ksh
 	[...]
 	;;
esac
[...]
```

-RVP