Re: SSH et SCP
On 2005-02-17 10:24:13 +0100, Jacques L'helgoualc'h wrote:
> Un message à l'ouverture, ça s'oublie ...
>
> if [ -n "$REMOTEHOST" ]
> then
> PS1="\[\e[00;32;40m\]$(basename $(tty)) \u\[\e[00;01;33;40m\]@\h\[\e[00m\]:\w \[\e[01;33m\]\\$ \[\e[00m\e[K\]"
> else
> PS1="\[\e[00;32;40m\]$(basename $(tty)) \u\[\e[00;37;40m\]@\w \[\e[01;32m\]\\$ \[\e[00m\e[K\]"
> fi
Il y a des fois où on préfère un message à l'ouverture, surtout si
le shell est non interactif.
--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Reply to:
- References:
- SSH et SCP
- From: "jean-michel.caricand" <jean-michel.caricand@laposte.net>
- Re: SSH et SCP
- From: Sylvain Sauvage <Sylvain.Sauvage@metanoesis.net>
- Re: SSH et SCP
- From: Jacques L'helgoualc'h <lhh+nospam@free.fr>
- Re: SSH et SCP
- From: "jean-michel.caricand" <jean-michel.caricand@laposte.net>
- Re: SSH et SCP
- From: Jacques L'helgoualc'h <lhh+nospam@free.fr>