delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/27/13:03:00

From: weiqigao AT a DOT crl DOT com (Weiqi Gao)
Subject: Re: BASH history
27 Nov 1998 13:03:00 -0800 :
Message-ID: <365EA918.A4B4D79D.cygnus.gnu-win32@a.crl.com>
References: <C12566C8 DOT 00390F58 DOT 00 AT notes DOT kuttig DOT com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

mvoss AT kuttig DOT com wrote:
> 
> Hi!
> I'm trying to work myself into Linux & stuff, and I try to use the BASH
> that comes with Cygwin Bxx to work under Win32.
> It's fun, it's somewhat cooler than the DOS-prompt!
> 
> Here's my Question:
>   I found the following file in my root: ".bash_history".
>   It does not at all belong there! (I've got a bad obsessive-compulsive
> disorder about keeping my system tidy %-}...)
> 
>   How can I prevent BASH from creating this file in my root directory
> (C:\)?

Bash looks for an environment variable called HOME and put .bash_history
there.  It also reads the .bashrc start up script from there.

It is debatable whether to set HOME to /home/username (the Linux way) or
C:\Windows\Profiles\UserName (the Windows way).

--
Weiqi Gao
weiqigao AT a DOT crl DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019