## /etc/profile (editted by k-square) for cygwin 1.3.22 # Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69 # Consistent BackSpace and Delete Configuration: # http://www.ibb.net/~anne/keyboard.html # 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 path # 2) from /etc/passwd, if there is an entry with a non empty directory field # 3) from HOMEDRIVE/HOMEPATH # 4) / (root) # To Overwrite Cygwin default ``HOME'' # Set up USER's home directory if [ "$HOME" = "" -o "$HOME" = "/" ] then export HOME="/home/$USER" fi # Set up USER's environment (only first time) if [ ! -d "$HOME" ] then umask 022 mkdir -p "$HOME" if [ ! -z "`/usr/bin/find /etc/skel/ -maxdepth 1 -type f`" ] then # copy skeleton files cp `/usr/bin/find /etc/skel/ -maxdepth 1 -type f` $HOME chown -R `id -ur`:`id -gr` $HOME fi fi # Load system default bashrc if [ -f /etc/bash.bashrc ] then . /etc/bash.bashrc fi # run all of the profile.d scripts for i in /etc/profile.d/*.sh do if [ -f $i ] then . $i fi done unset i # Set up Japanese environment export LANG=ja_JP.SJIS export OUTPUT_CHARSET=sjis #export LC_MESSAGES=C export PAGER='/usr/bin/less' export JLESSCHARSET=japanese-sjis export LESSEDIT='vi %f' export LESS=-X # 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 CVSROOT=:pserver:anoncvs@sources.redhat.com:/cvs/src # 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"