1# 2# Example /etc/csh.cshrc for Cygwin 3# 4onintr - 5 6if ( -d /etc/profile.d ) then 7 set nonomatch 8 foreach _s ( /etc/profile.d/*.csh ) 9 if ( -r $_s ) then 10 source $_s 11 endif 12 end 13 unset _s nonomatch 14endif 15 16if (! ${?prompt}) goto end 17 18# This is an interactive session 19 20# Now read in the key bindings of the tcsh 21if ($?tcsh && -r /etc/profile.d/bindkey.tcsh) then 22 source /etc/profile.d/bindkey.tcsh 23endif 24 25# On Cygwin it's possible to start tcsh without having any Cygwin /bin 26# path in $PATH. This breaks complete.tcsh starting with tcsh 6.15.00. 27# For that reason we add /bin to $PATH temporarily here. We remove it 28# afterwards because it's added again (and correctly so) in /etc/csh.login. 29set path=( /bin $path:q ) 30 31# Source the completion extension for tcsh 32if ($?tcsh && -r /etc/profile.d/complete.tcsh) then 33 source /etc/profile.d/complete.tcsh 34endif 35 36# Reset $PATH. 37set path=( $path[2-]:q ) 38 39# If we find $HOME/.{t}cshrc we skip our settings used for interactive sessions. 40if (-r "$HOME/.cshrc" || -r "$HOME/.tcshrc") goto end 41 42# Set prompt 43if ($?tcsh) then 44 set prompt='[%n@%m %c02]$ ' 45else 46 set prompt=\[`id -un`@`hostname`\]\$\ 47endif 48 49# Some neat default settings. 50set autocorrect=1 51set autolist=ambiguous 52unset autologout 53set complete=enhance 54set correct=cmd 55set echo_style=both 56set ellipsis 57set fignore=(.o \~) 58set histdup=erase 59set history=100 60unset ignoreeof 61set listjobs=long 62set listmaxrows=23 63#set noglob 64set notify=1 65set rmstar=1 66set savehist=( $history merge ) 67set showdots=1 68set symlinks=expand 69 70# Some neat aliases 71alias ++ pushd 72alias -- popd 73alias d dirs 74alias h history 75alias j jobs 76alias l 'ls -C' 77alias la 'ls -a' 78alias ll 'ls -l' 79alias ls 'ls --color' 80 81end: 82 onintr 83