NetBSD-Users archive

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

Re: Tweeking PS1



Thank you!



MMMM. .kshrc?

That worked for root ...

On Wed, Jun 17, 2026 at 3:08 AM RVP <rvp%sdf.org@localhost> wrote:
>
> > 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


Home | Main Index | Thread Index | Old Index