deleted by mistake .bashrc file in C:\cygwin\home\setup after install

Ken Smith kens@kensnet.org
Sun Apr 29 15:59:00 GMT 2007


Garrett Cooper wrote:
> Tomczak wrote:
>> Hi
>>
>> I did install cygwin and Grass on windows XP at the weekend and 
>> accidentally
>> deleted .bashrc file in C:\cygwin\home\setup and the file is not in my
>> recycle bin.
>>
>> Can someone advise how i can get it back from the downloaded install 
>> files.
>> I was installing Grass 6.2.1 Win/Grass with cygwin. i used the latest 
>> cygwin
>> download from the setup program.
>>
>> Also would like to know to edit it as i know very little about unix.
>>
>> Thanks in Advance
>>
>> Thierry
>
> First off, you accidentally emailed this to the wrong list.
>
> Second off, honestly if it wasn't produced when you first started 
> cygwin up and you didn't back it up, then you are (unfortunately) at 
> fault for your own file deletion. AFAIK there isn't any way to get it 
> back.
>
> -Garrett
>
> {snip}
>
>
Another approach might be to log on as another user and let the system 
generate a new .bashrc and then copy the file over. As it happens on my 
system the .bashrc is largely commented out as follows.....

# base-files version 3.2-1

# User dependent .bashrc file

# See man bash for more options...
# Don't wait for job termination notification
# set -o notify

# Don't use ^D to exit
# set -o ignoreeof

# Don't put duplicate lines in the history.
# export HISTCONTROL=ignoredups

# Some example alias instructions
# alias less='less -r'
# alias rm='rm -i'
# alias whence='type -a'
# alias ls='ls -F --color=tty'
# alias dir='ls --color=auto --format=vertical'
# alias vdir='ls --color=auto --format=long'
# alias ll='ls -l'
# alias la='ls -A'
# alias l='ls -CF'

# Some example functions
# function settitle() { echo -n "^[]2;$@^G^[]1;$@^G"; }


Hope that helps

Ken

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list