# It is recommended that cvs uses ssh for it's remote shell environment CVS_RSH=/bin/ssh + CVS_RSH=/bin/ssh export CVS_RSH + export CVS_RSH # Patches to Cygwin always appreciated ;) # CVSROOT=:pserver:anoncvs@sources.redhat.com:/cvs/src # export CVSROOT # Shell dependent settings case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_/ /'`" in bash | -bash | */bash | \ bash.exe | -bash.exe | */bash.exe ) # Set a HOSTNAME variable HOSTNAME=`hostname` export HOSTNAME # Set a default prompt of: user@host and current_directory PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' ;; ksh* | -ksh* | */ksh* | \ ksh*.exe | -ksh*.exe | */ksh*.exe ) # Set a HOSTNAME variable typeset -l HOSTNAME # Set a default prompt of: user@host and current_directory PS1='^[]0;${PWD}^G ^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m $ ' ;; zsh* | -zsh* | */zsh* | \ zsh*.exe | -zsh*.exe | */zsh*.exe ) # Set a default prompt of: user@host, a command counter, and current_dir ectory PS1='(%n@%m)[%h] %~ %% ' # Set SHELL if not set if [ ! -z "${ZSH_NAME}" -a -z "${SHELL}" ]; then SHELL="/bin/zsh" export SHELL fi ;; sh | -sh | */sh | \ sh.exe | -sh.exe | */sh.exe ) # Set a simple prompt PS1='$ ' ;; * ) # Sorry, this shell has no defaults in /etc/profile, # feel free to add your own. # If you have some recommendations for what these defaults # should be, please contact cygwin@cygwin.com with the # shell details and what you would like added. # Thanks PS1='$ ' ;; esac + case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^ _//'`" in echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^_//' ++ echo _bash ++ /usr/bin/tr '[:upper:]' '[:lower:]' ++ /usr/bin/sed -e 's/^_//' hostname ++ hostname + HOSTNAME=malex + export HOSTNAME + PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' export PS1 + export PS1 # Run all of the profile.d scripts # Note that these are supplied by separate packages # Ascending alphanumerical order enforced if [ -d "/etc/profile.d" ]; then while read f; do if [ -f "${f}" ]; then . "${f}" fi done <<- EOF fi + '[' -d /etc/profile.d ']' /bin/find /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' | LC_ALL=C sor t ++ /bin/find /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh' ++ LC_ALL=C ++ sort bash: cannot create temp file for here document: No such file or directory # Uncomment to use the terminal colours set in DIR_COLOR # eval "`dircolors -b /etc/DIR_COLORS`" # 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 + umask 022 # Define default printer PRINTER="" + PRINTER= case `uname -s` in CYGWIN_NT-*) PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVer sion\Windows\Device' | sed 's/,.*$//'`" ;; CYGWIN_9?-*) PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print \Printers\Default'`" ;; esac + case `uname -s` in uname -s ++ uname -s regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Devic e' | sed 's/,.*$//' ++ regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\De vice' ++ sed 's/,.*$//' + PRINTER='\\MCHEWBACCA\KOOP PCL 5E' export PRINTER + export PRINTER # Make sure we start in home unless invoked by CHERE if [ ! -z "${CHERE_INVOKING}" ]; then unset CHERE_INVOKING else cd "${HOME}" fi + '[' '!' -z '' ']' + cd /home/bdemchak # Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails # about this on the lists! # If this message keeps appearing and you are sure it's a mistake (ie, don't # email about it!), comment out the test below. case `id -ng` in mkpasswd ) echo "Your group is currently \"mkpasswd\". This indicates that" echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l [-d] > /etc/passwd" echo "mkgroup -l [-d] > /etc/group" echo "Note that the -d switch is necessary for domain users." ;; mkgroup ) echo "Your group is currently \"mkgroup\". This indicates that" echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l [-d] > /etc/passwd" echo "mkgroup -l [-d] > /etc/group" echo "Note that the -d switch is necessary for domain users." ;; mkgroup_l_d ) echo "Your group name is currently \"mkgroup_l_d\". This indicates that not" echo "all domain users and groups are listed in the /etc/passwd and" echo "/etc/group files." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l -d > /etc/passwd" echo "mkgroup -l -d > /etc/group" echo echo "This message is only displayed once (unless you recreate /etc/group)" echo "and can be safely ignored." # only display the above once cp -f /etc/group "${HOME}/group.mkgroup_l_d" \ && ( [ -w /etc/group ] || chmod --silent a+w /etc/group ; )\ && sed -e 's/^mkgroup_l_d/mkgroup-l-d/' "${HOME}/group.mkgroup_l_d" > /etc/gro up \ && chmod --silent --reference=/etc/passwd /etc/group rm -f "${HOME}/group.mkgroup_l_d" ;; esac + case `id -ng` in id -ng ++ id -ng # base-files version 3.4-2 # WARNING # # IF THIS .bash_profile IS MODIFIED IT WILL NOT BE UPDATED BY THE CYGWIN # SETUP PROGRAM. IT BECOMES YOUR RESPONSIBILITY. # # The latest version as installed by the Cygwin Setup program can # always be found at /etc/defaults/etc/skel/.bash_profile # ~/.bash_profile: executed by bash for login shells. # source the system wide bashrc if it exists if [ -e /etc/bash.bashrc ] ; then source /etc/bash.bashrc fi + '[' -e /etc/bash.bashrc ']' + source /etc/bash.bashrc # base-files version 3.4-2 # WARNING # # IF THIS bash IS MODIFIED IT WILL NOT BE UPDATED BY THE CYGWIN # SETUP PROGRAM. IT BECOMES YOUR RESPONSIBILITY. # # The latest version as installed by the Cygwin Setup program can # always be found at /etc/defaults/etc/bash.bashrc # System-wide .bashrc file # source the users bashrc if it exists if [ -e "${HOME}/.bashrc" ] ; then source "${HOME}/.bashrc" fi + '[' -e /home/bdemchak/.bashrc ']' + source /home/bdemchak/.bashrc # base-files version 3.4-2 # WARNING # # IF THIS .bashrc IS MODIFIED IT WILL NOT BE UPDATED BY THE CYGWIN # SETUP PROGRAM. IT BECOMES YOUR RESPONSIBILITY. # # The latest version as installed by the Cygwin Setup program can # always be found at /etc/defaults/etc/skel/.bashrc # 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 # Ignore some controlling instructions # export HISTIGNORE="[ ]*:&:bg:fg" # Some example alias instructions # If these are enabled they will be used instead of any instructions # they may mask. For example, alias rm='rm -i' will mask the rm # application. To override the alias instruction use a \ before, ie # \rm will call the real rm not the alias. # Interactive operation... # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' # Default to human readable figures # alias df='df -h' # alias du='du -h' # Misc :) # alias less='less -r' # raw control characters # alias whence='type -a' # where, of a sort # alias grep='grep --color' # show differences in colour # Some shortcuts for different directory listings # alias ls='ls -hF --color=tty' # classify files in colour # alias dir='ls --color=auto --format=vertical' # alias vdir='ls --color=auto --format=long' # alias ll='ls -l' # long list # alias la='ls -A' # all but . and .. # alias l='ls -CF' # # Some example functions # function settitle() { echo -n "^[]2;$@^G^[]1;$@^G"; } # Set PATH so it includes user's private bin if it exists # if [ -d "${HOME}/bin" ] ; then # PATH=${HOME}/bin:${PATH} # fi # Set MANPATH so it includes users' private man if it exists # if [ -d "${HOME}/man" ]; then # MANPATH=${HOME}/man:${MANPATH} # fi # Set INFOPATH so it includes users' private info if it exists # if [ -d "${HOME}/info" ]; then # INFOPATH=${HOME}/info:${INFOPATH} # fi bdemchak@malex ~ $