用户工具

站点工具


linux:csh:mycshrc

My cshrc Setting

 
#
# ICDS-PRE-BEGIN ICDS-BEGIN - DO NOT EDIT THIS SECTION
# Includes icds commands - cshrc.prestub
#
if ($?ICDS_CSH_CAVEMAN == 1) then
    if (-e $ICDS_SYS/csh/cshrc.precmd) then
       source $ICDS_SYS/csh/cshrc.precmd
    endif
endif
#
# ICDS-PRE-END - end ICDS section
# USER CODE MUST BE ENTERED BELOW THIS LINE!
#function bye
#{
	#rm -f $HOME/.history
	#exit
#}
alias bye	logout
alias rm	'rm -i'
alias cp	'cp -i'
alias l		'ls -F'
alias ll	'ls -lagF'
alias rl	'rlogin'
alias ping	'/usr/etc/ping'
 
#gdh alias
alias gvim			~dongu/bin/gvim -U ~dongu/.vimrc
alias gv	     	~dongu/bin/gvim -U ~dongu/.vimrc
alias vim	     	~dongu/bin/vim  -u ~dongu/.vimrc
# alias vi	     	~dongu/bin/vim
# alias v		      ~dongu/bin/vim
# alias vimdiff	 	~dongu/bin/vimdiff
# alias gvimdiff 	~dongu/bin/gvimdiff
#  
 
#gdh path setting
 
setenv LSF_ENVDIR /tools/lsfadm/conf
set path=(/bin /usr/sbin /local/usr/bin /usr/bin /sbin /utils/bin $path)
set path=(/sopt/icds/bin /tools/lsf7.0/bin /tools/lsf7.0/etc /tools/cfr/bin  $path)
set path=(/usr/X11R6/bin $path)
set path=(/tools/icc-2009.06/amd64/syn/bin $path)
set path=(~dongu/bin $path)
 
#set LSF_ENVDIR=/tools/lsfadm/conf
#LSF setting
#source /tools/lsfadm/conf/cshrc.lsf
 
 
# command line edit mode
# set -o emacs
# LS_COLOR
#setenv LS_COLORS "di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90"
setenv LS_COLORS "no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
 
#alias addon   'set ADDON_PACKAGE = "\!*"; source /usr/add-on/lib/add-on-csh'
#alias takeoff 'set ADDON_PACKAGE = "\!*"; source /usr/add-on/lib/take-off-csh'
 
# For image - please remove the following comment, if you need it...
#source /image/common/.cshrc
# USER CODE MUST BE ENTERED ABOVE THIS LINE!
# ICDS-POST-BEGIN - DO NOT EDIT THIS SECTION
# Includes icds commands - cshrc.poststub
#
#
if ($?ICDS_CSH_CAVEMAN == 1) then
    if (-e $ICDS_SYS/csh/cshrc.postcmd) then
        source $ICDS_SYS/csh/cshrc.postcmd
    else if (-e $ICDS_SYS/csh/cshrc.cmd) then
        source $ICDS_SYS/csh/cshrc.cmd
    else if (! -d $ICDS_SYS) then
        # ICDS-POST-RESET
        unsetenv ICDS_CSH_CAVEMAN
    else
        echo "icds-E, $ICDS_SYS/csh/cshrc.postcmd not accessible"
    endif
endif
#
# ICDS-POST-END - end ICDS section
#
 
if ( $?prompt ) then
  set autoexpand
  set autolist
  set cdpath = ( ~ )
  set pushdtohome
  set savehist=10000
  set histfile=~/.history
 
# Load aliases from ~/.alias
if ( -e ~/.alias )  source ~/.alias
endif
 
set PROMPT_COMMAND="pwd"
set prompt="%h:%n@%m:%c >> "
# set PS1="%h:%n@%m:${cwd} >> "
# set PS1=">> "
 
xhost + > /dev/null
linux/csh/mycshrc.txt · 最后更改: 2011/05/12 03:10 (外部编辑)