From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8107 invoked from network); 14 Sep 1998 23:59:50 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Sep 1998 23:59:50 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id TAA29243; Mon, 14 Sep 1998 19:50:26 -0400 (EDT) Resent-Date: Mon, 14 Sep 1998 19:50:07 -0400 (EDT) Message-ID: <19980915015318.B22850@math.fu-berlin.de> Date: Tue, 15 Sep 1998 01:53:18 +0200 From: "'Sven Guckes'" To: ZShell Users List Subject: Re: zsh for win32 - installation of zshrc Mail-Followup-To: ZShell Users List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Amol Deshpande on Mon, Sep 14, 1998 at 11:40:28AM -0700 X-Mailer: Mutt http://www.mutt.org/ X-Editor: Vim http://www.vim.org/ X-Info: http://www.math.fu-berlin.de/~guckes/ Resent-Message-ID: <"bZYB_3.0.J87.lkQ_r"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1793 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Quoting Amol Deshpande (amold@MICROSOFT.com): > There is no problem creating .zshrc on win9x. > just use a real editor like vim :-) even notepad will do it in a pinch. > or, copy zshrc .zshrc. Sure - I don't have a problem with the editor (using vim, of course) but I am simply not sure about its possible placements ("directory"). Furthermore, the README does not give explicit examples which it should. And I always thought that the value of a variable on the DOS shell is "%var%" and not "$var". or has this changed with WindowsNT? > 7. HOME directory: > ----------------- > zsh sets the HOME directory if it's not already set. It uses > the windows directory on win95, $HOMEDRIVE\$HOMEPATH on nt <4.0, > and $USERPROFILE on NT 4.0 and higher. > If ZSHDOTDIR is set, zsh sets home to "youdonthavehomeset". This > is to avoid crashing in places where the shell expects a home directory. > Picking a real default would defeat the purpose of not setting home. > (that means you can set ZSHDOTDIR instead of HOME for your startup files) Well - what is the difference between these methods? What is the "windows directory" on Windows95 (ie how is this defined in a Windows setup)? Anyway - this is what I understand so far: Windows95: C:\WINDOWS\.zshrc WindowsNT-3.x: $HOMEDRIVE\$HOMEPATH\.zshrc WindowsNT-4.x: $USERPROFILE\.zshrc $ZDOTDIR\.zshrc $HOME\.zshrc Is this correct now? Can someone come up with a shorter description? For WindowsNT-4.x - in which order are the various locations checked? The value of a variable on Windows cannot be used as $VAR (I think) but needs to be specified as %VAR% - and this is only possible in batch files. Right or wrong? I am looking forward to a concise but precise description and I would love to summarize the info I get - but I need answers. I think this should be possible somehow. Or do I have to deassemble the binary? Sven