# $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $ # # .cshrc - csh resource script, read at beginning of execution by each shell # # see also csh(1), environ(7). # ## basic aliases ################ alias rm rm -I alias h history 25 alias j jobs -l alias la ls -a alias lf ls -FA alias ll ls -lA alias lq ls -alFGh alias less less -M -F alias grep grep --color alias hist "history | grep $1" # A righteous umask umask 22 ## basic environment ############ set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin) set prompt = "%B%n%b@%B%m%b %c/%# " setenv EDITOR vi setenv VISUAL vi setenv PAGER less setenv BLOCKSIZE K setenv PKG_TMPDIR /usr/ports/packages/_pkgtmp setenv PACKAGES /usr/ports/packages setenv PORTUPGRADE "-b -e -p" #setenv LANG cs_CZ.ISO8859-2 setenv MYSQL_HISTFILE /dev/null ## color output for ls, see man ls and man tcsh ls-F, you can modify LSCOLORS setenv CLICOLOR yes ## use vim only if we have vim if ( -x `which vim`) then alias vi vim alias view vim -R setenv EDITOR vim setenv VISUAL vim endif if ( -x `which portsnap` && -x `which pkg_version` ) then alias uports "portsnap fetch update && pkg_version -IvL =" else alias uports "echo 'can not update ports tree, portsnap or pkg_version is not installed'" endif ######################################################################## # skip remaining setup if not an interactive shell if ($?USER == 0 || $?prompt == 0) exit # settings for interactive shells source $HOME/.tcshrc.set # bindkeys for interactive shells #source $HOME/.tcshrc.bindkey # completions for interactive shells source $HOME/.tcshrc.complete ## use Ctrl-V. Press that in the Terminal and then hit any key, ## and it will give you the magic code to use, ## even pasting it if you're using vi. ## Ctrl+W bindkey "^W" backward-delete-word ## Shift-BACKSPACE #bindkey "^H" backward-delete-word ## UP bindkey -k up history-search-backward ## DOWN bindkey -k down history-search-forward ## Ctrl-LEFT bindkey "^[OD" backward-word #bindkey "\e[OD" backward-word ## Ctrl-RIGHT bindkey "^[OC" forward-word #bindkey "\e[OC" forward-word ## DEL key bindkey "^[[3~" delete-char #bindkey "\e[3~" delete-char ## HOME bindkey "^[[1~" beginning-of-line ## END bindkey "^[[4~" end-of-line