This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Directory problems after fresh install of v1.3.22-1

> ----------
> From: 	Max Bowsher[]
> Sent: 	5. avgust 2003 13:55
> To: 	David Balazic;
> Subject: 	Re: Directory problems after fresh install of v1.3.22-1
> David Balazic wrote:
> > Here it is :
> > ( cygcheck -s -v -r )
> Hmm. That's weird. 
> Does X:\cygwin\etc\profile exist?
Here are the contents :

# Some resources...

# Customizing Your Shell:
# Consistent BackSpace and Delete Configuration:

# Setup some default paths.  Note that this order will allow user installed
#  software to override 'system' software

# If you wish to change the path on a user by user basis, it is recommended
#  edit ~/.bashrc

# If you wish to change the path for all users, it is recommended you edit
#  /etc/bash.bashrc

export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"

# Set the user id
export USER="`id -un`"

# Here is how HOME is set, in order of priority, when starting from Windows
# 1) From existing HOME in the Windows environment, translated to a Posix
# 2) from /etc/passwd, if there is an entry with a non empty directory field
# 4) / (root)

# If the home directory doesn't exist, create it.
if [ ! -d "$HOME" ]; then
  mkdir -p "$HOME"
  # copy skeleton files
  cd /etc/skel
  for f in `/bin/find . -type f`; do
    fDest=`echo $f | sed -e 's/^\.//g'`
    if [ ! -e "$HOME$fDest" -a ! -L "$HOME$fDest" ]; then
      cp "$f" "$HOME/$fDest"

# run all of the profile.d scripts
for i in /etc/profile.d/*.sh ; do
  if [ -f $i ]; then
    . $i

# default to unix make mode
export MAKE_MODE=unix

# it is recommended that cvs uses ssh for it's remote shell environment
export CVS_RSH=/bin/ssh

# Patches to Cygwin always appreciated ;)
# export

# Set a HOSTNAME variable
export HOSTNAME=`hostname`

# set a default prompt of: user@host current_directory
export PS1='\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '

# uncomment to use the terminal colours set in DIR_COLOR
# eval `dircolors -b /etc/DIR_COLOR`

# default to removing the write permission for group and other
# (files normally created with mode 777 become 755; files created with
# mode 666 become 644)
umask 022

# make sure we start in home
cd "$HOME"

> Max.

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]