Re: Possible additions to x11.en.xml?

Martin Costabel <[email protected]>
Newsgroups gmane.os.apple.fink.i18n
Message-ID <[email protected]>
Michèle Garoche wrote:

> •For zsh users:
> Add the following to your .zhrc file:

Isn't this ".zshrc"?

> 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

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"

-- 
Martin




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
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.