Date:Mon, 27 Jan 2020 11:42:13 +
From:Ottavio Caruso
Message-ID:
| One more thing. Is there any trick I can
| use to get $PWD expanded as "~" rather than "/home/oc"?
See my earlier reply in this thread.
kre
Op 24/01/2020 om 18:56 schreef Ottavio Caruso:
On Fri, 24 Jan 2020 at 16:34, Kamil Rytarowski wrote:
On 24.01.2020 14:19, Ottavio Caruso wrote:
Hi,
[hoping my post doesn't arrive duplicated or triplicated]
How do you set the prompt in ksh? The man page doesn't seem to help.
OpenBSD ksh has
In addition to the other recommendations,
don't have the PS1 prompt run commands everytime the prompt is
generated. For example, you don't need to run commands each prompt to
figure out your username and hostname as likely they won't or cannot
change in the same shell session. For example:
On Fri, Jan 24, 2020 at 07:05:29PM +, Ottavio Caruso wrote:
> On Fri, 24 Jan 2020 at 18:57, Robert Elz wrote:
> >
> > There are a zillion different things called ksh, I'm not
> > sure which version OpenBSD have as ksh
>
> Strangely enough, both OSes report exactly the same version:
>
>
On Fri, 24 Jan 2020 at 16:34, Kamil Rytarowski wrote:
>
> On 24.01.2020 14:19, Ottavio Caruso wrote:
> > Hi,
> >
> > [hoping my post doesn't arrive duplicated or triplicated]
> >
> > How do you set the prompt in ksh? The man page doesn't seem to help.
> > OpenBSD ksh has a different manpage.
On Fri, 24 Jan 2020 at 18:57, Robert Elz wrote:
>
> There are a zillion different things called ksh, I'm not
> sure which version OpenBSD have as ksh
Strangely enough, both OSes report exactly the same version:
KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2'
--
Ottavio Caruso
Date:Fri, 24 Jan 2020 13:19:39 +
From:Ottavio Caruso
Message-ID:
| How do you set the prompt in ksh?
The same way one would set it in any other Bourne shell (more or less)
compatible shell, PS1='whatever'
| The man page doesn't seem to help.
It looks
On 24.01.2020 14:19, Ottavio Caruso wrote:
> Hi,
>
> [hoping my post doesn't arrive duplicated or triplicated]
>
> How do you set the prompt in ksh? The man page doesn't seem to help.
> OpenBSD ksh has a different manpage. Compare:
> https://man.openbsd.org/ksh.1#PS1
> and
>
Ottavio Caruso wrote in :
|Hi,
|
|[hoping my post doesn't arrive duplicated or triplicated]
|
|How do you set the prompt in ksh? The man page doesn't seem to help.
|OpenBSD ksh has a different manpage. Compare:
|https://man.openbsd.org/ksh.1#PS1
|and
Here's mine,
# .shrc file for sh(1).
ll(){ ls -l ${1+"$@"}; }
case "$-" in *i*)
if /bin/test -z "${HOST}"; then
HOST="$(hostname)"
fi
PS1="${USER}@${HOST%%.*} $PS1"
set -o emacs
;;
esac
Den fre 24 jan. 2020 17:30Ottavio Caruso
skrev:
> Hi,
>
> [hoping my post doesn't arrive duplicated or
Hi,
[hoping my post doesn't arrive duplicated or triplicated]
How do you set the prompt in ksh? The man page doesn't seem to help.
OpenBSD ksh has a different manpage. Compare:
https://man.openbsd.org/ksh.1#PS1
and
https://netbsd.gw.com/cgi-bin/man-cgi?ksh
For example:
PS1="\u@\h:\w\$ "
is not
11 matches
Mail list logo