# $FreeBSD: stable/10/etc/csh.cshrc 50472 1999-08-27 23:37:10Z peter $ # # System-wide .cshrc file for csh(1). set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin) setenv EDITOR mcedit setenv VISUAL ${EDITOR} # use vim setenv PAGER less setenv BLOCKSIZE M setenv LSCOLORS "ExGxFxDxCxDxDxhbhdacEc" setenv LC_ALL "ru_RU.UTF-8" setenv RXVT_SOCKET /home/iron/.urxvt/urxvtd-IRON # GENERAL SETUP set filec # file completion set history = 100000 # keep that much in history set savehist = (100000 merge) set color # use color in ls etc. set autolist set nobeep set correct = cmd set histdup = erase set histfile = ~/.tcsh_history set promptchars = '$#' # Set some variables for interactive shells if ( $?prompt ) then # Find out if we should do colours if ( -r "/etc/DIR_COLORS" ) then if ( $?TERM ) then set colour = `"/usr/bin/egrep" "^TERM ${TERM}"'$' "/etc/DIR_COLORS"` endif endif # Set a Gentoo-ish prompt and setup colourful stuff if we have colour if ( "$uid" == "0" ) then set prompt = "%{\033[0;1;34m%}%{\033[0;1;31m%}%m%{\033[0m%} %{\033[0;1;34m%}%c3%{\033[0;1;34m%} %{\033[0;1;34m%}%#%{\033[0m%} " else set prompt = "%{\033[0;1;34m%}%{\033[0;1;32m%}%n@%m%{\033[0m%} %{\033[0;1;34m%}%c3%{\033[0;1;34m%} %{\033[0;1;34m%}%#%{\033[0m%} " endif alias ls 'ls -G' alias grep 'grep --color=auto' unset colour endif bindkey "\e[1~" beginning-of-line # Home bindkey "\e[7~" beginning-of-line # Home rxvt bindkey "\e[2~" overwrite-mode # Ins bindkey "\e[3~" delete-char # Delete bindkey "\e[4~" end-of-line # End bindkey "\e[5~" history-search-backward bindkey "\e[6~" history-search-forward bindkey "\e[8~" end-of-line # End rxvt bindkey "^w" backward-delete-word bindkey "\e[1;5D" vi-word-back bindkey "\e[1;5C" vi-word-fwd complete service 'n@*@`ls /etc/rc.d /usr/local/etc/rc.d | sed -e "/:/d"`@' complete pkill 'c/-/(1 2 3 6 9 14 15 HUP INT QUIT ABRT KILL ALRM TERM)/'\ 'n@*@`ps -a -x -c -o command="" | sort | uniq`@'