Re: [Fink-i18n] Possible additions to x11.en.xml ? (Modifié par Michèle Garoche)

Michèle Garoche <[email protected]>
Newsgroups gmane.os.apple.fink.i18n
Message-ID <[email protected]>
Sorry, click on the wrong button on replying.

Le 15 mai 2004, à 9:37, Martin Costabel a écrit :

> Michèle Garoche wrote:
>
>> •For zsh users:
>> Add the following to your .zhrc file:
>
> Isn't this ".zshrc"?
Oh, yes, of course, sorry.

>
>> if [[ -z $?DISPLAY ]] then
>> export DISPLAY=":0.0"
>> endif
>> Same syntax for bash users???
>
> Not quite. First, in both zsh and bash, it is
>   -z $DISPLAY
> not
>   -z $?DISPLAY
I've put it this way, so that it works remotely too. Is it wrong?

>
> Second, in bash you need a ";" after "]"
>   if [[ -z $?DISPLAY ]]; then
> Or else put the "then" on an extra line.
> Both of these work in zsh, too.
>
> Third, in both zsh and bash, you can simplify to a one-liner
>
>   [[ -z $DISPLAY ]] && export DISPLAY=":0.0"
OK, better, one line :-).

Michèle
<http://micmacfr.homeunix.org>
PGP.sig (application/pgp-signature, 186 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.