b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / etc /
Filename/etc/csh.cshrc
Size1.59 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:42
Last modified22-Mar-2017 03:26
Last accessed21-Apr-2026 19:37
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# /etc/cshrc
#
# csh configuration for all shell invocations.

# By default, we want this to get set.
# Even for non-interactive, non-login shells.
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if ($uid > 199 && "`/usr/bin/id -gn`" == "`/usr/bin/id -un`") then
umask 002
else
umask 022
endif

if ($?prompt) then
if ($?tcsh) then
set promptchars='$#'
set prompt='[%n@%m %c]%# '
# make completion work better by default
set autolist
else
set prompt=\[$user@`/bin/hostname -s`\]\$\
endif
endif

if ( $?tcsh ) then
bindkey "^[[3~" delete-char
endif

bindkey "^R" i-search-back
set echo_style = both
set histdup = erase
set savehist = (1024 merge)

if ($?prompt) then
if ($?TERM) then
switch($TERM)
case xterm*:
if ($?tcsh) then
set prompt='%{\033]0;%n@%m:%c\007%}[%n@%m %c]%# '
endif
breaksw
case screen:
if ($?tcsh) then
set prompt='%{\033_%n@%m:%c\033\\%}[%n@%m %c]%# '
endif
breaksw
default:
breaksw
endsw
endif
endif

setenv MAIL "/var/spool/mail/$USER"

# Check if we aren't a loginshell and do stuff if we aren't
if (! $?loginsh) then
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r "$i" ) then
if ($?prompt) then
source "$i"
else
source "$i" >&/dev/null
endif
endif
end
unset i nonomatch
endif
endif