diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:00:09 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:00:09 +0900 |
commit | d2476e744609ddda0a6812a6b260670a87692507 (patch) | |
tree | 3f8583da8afc56ed0bb6f89dbdf8059b5b3eecd3 /csh.cshrc | |
download | setup-2.3a_release.tar.gz setup-2.3a_release.tar.bz2 setup-2.3a_release.zip |
Initialize Tizen 2.3submit/tizen_2.3/20140531.1114202.3a_release
Diffstat (limited to 'csh.cshrc')
-rw-r--r-- | csh.cshrc | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/csh.cshrc b/csh.cshrc new file mode 100644 index 0000000..af6843e --- /dev/null +++ b/csh.cshrc @@ -0,0 +1,72 @@ +# /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 && "`id -gn`" == "`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@`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 |