Files
dotfiles/.tcshrc
2018-02-05 14:57:43 -06:00

46 lines
1.0 KiB
Plaintext

#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#
alias h history 25
alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
# A righteous umask
umask 22
set path = ( /sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin)
setenv EDITOR vim
setenv TERM xterm-256color
setenv PAGER less
setenv BLOCKSIZE K
setenv LANG en_US.UTF-8
if ($?prompt) then
# An interactive shell -- set some stuff up
set filec
set history = 100
set savehist = 100
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
set autolist
set correct=cmd
# set watch = (0 any any)
set autologout=0
set filec
if ($uid) then
set prompt = "%{\033[34m%}%B<%n@%{\033[31m%}%m%{\033[34m%}>%b%{\033[0m%} %~ > "
else
set prompt = "%{\033[31m%}%B<root@%{\033[31m%}%m%{\033[31m%}>%b%{\033[0m%} %~ # "
endif
endif
endif