useful tcshrc for daily use

.tcshrc
alias h         history 25
alias j         jobs -l
alias ll        ls -hAlFtr

if ( -x /usr/bin/vim ) then
        alias vi        vim
endif

# A righteous umask
umask 22


setenv  EDITOR  vi
setenv  PAGER   less
setenv  BLOCKSIZE       K
setenv  LC_ALL en_US.ISO8859-1
setenv  LANG en_US.UTF-8
setenv  LESS "-iXFR"

setenv  CLICOLOR

# -- An interactive shell -- set some stuff up
if ($?prompt) then
        set colorcat
        set ignoreeof
        set autoexpand
        set autocorrect
        set correct=cmd
        set rmstar
        set filec
        #set history = 1000
        #set savehist = 1000
        set history=1000
        #       set histdup=erase
        #       set savehist=(1000 merge)
        set mail = (/var/mail/$USER)
        set noclobber
        set autolist
        set correct = cmd
        set nobeep
        set time=(8 "\
        Time spent in user mode   (CPU seconds) : %Us\
        Time spent in kernel mode (CPU seconds) : %Ss\
        Total time                              : %Es\
        CPU utilisation (percentage)            : %P\
        Times the process was swapped           : %W\
        Times of major page faults              : %F\
        Times of minor page faults              : %R")
        set printexitvalue
        set symlinks=chase
        set listjobs
        set who="%n has %a %l from %M."
        set watch=(0 any any)

        if ( $?tcsh ) then
                bindkey "\e[3~" delete-char
                bindkey "\e[1~" beginning-of-line
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
endif

#alias precmd 'history -S; history -M'
alias atom-update 'sudo rpm -i -U -v -hash https://atom.io/download/rpm'
  • No labels