Hello,
how to customize ($PWD) the prompt in pterm (terminal photon terminal)
?
Thx
Hello,
how to customize ($PWD) the prompt in pterm (terminal photon terminal)
?
Thx
export PS1=’$PWD->’
Regards,
Barry
“rp” <rp@no.com> wrote in message
news:mesnews.33687d41.4c40ad19.93.2248@no.com…
Hello,
how to customize ($PWD) the prompt in pterm (terminal photon terminal)
?Thx
OS Support wrote :
export PS1=’$PWD->’
Yes, but in which configuration file ?
It’s Ok in console mode but not in photon pterm (and my aliases
configurated in /etc/profile are disabled either).
rp <rp@no.com> wrote:
OS Support wrote :
export PS1=’$PWD->’Yes, but in which configuration file ?
It’s Ok in console mode but not in photon pterm (and my aliases
configurated in /etc/profile are disabled either).
The shell runs /etc/profile and ~/.profile only if it’s a login shell. You
have a couple of choices:
If you’re using ksh, create a file (e.g. ~/.kshrc) and set ENV to be
its name in your ~/.profile. You can also set aliases in the non-login
profile (the shell doesn’t export aliases, so you have to set them
whenever you start a shell).
You can start pterm with the -l option to make it into a login shell.
I hope this helps.
Steve Reid wrote :
- You can start pterm with the -l option to make it into a login shell.
That’s exactly what I need.
I hope this helps.
You do, thank U.