My .cshrc Preferences

.cshrc

if ($?prompt) then
 echo "Beginning JDO .cshrc"
endif
setenv WHICHHOST "`hostname`"
setenv WHICHOS   "`uname -s`"

# (?)
if ( "$WHICHOS" == "Linux" ) then
   setenv WHICHHOST "`hostname -s`"
endif

unalias cp
unalias mv

# list directories in columns
# (?)
alias ls 'ls -C'

# Remember last 100 commands
# (?)
set history = 100

# Enable filename completion
set filec

if ( (! $?ENVONLY) && $?prompt ) then
   # Colored prompt
   # ^[ is typed as "Ctrl-v" then "Esc"
   if ( "$WHICHOS" == "Linux" ) then
      alias cd 'cd \!* ; set prompt="%{\033[36m%}>>>$WHICHHOST ($WHICHOS)%{\033[m%}\\
%U`pwd` \! >%u "'
   else
      alias cd 'cd \!* ; set prompt="^[[36m>>>$WHICHHOST ($WHICHOS)^[[m\\
^[[04m`pwd` \! >^[[m "'
   endif
endif

if ( -e $HOME/.history ) then
   rm $HOME/.history
endif

# Set Linux settings
# if ( "$WHICHOS" == "Linux" ) then
   bindkey -v
   set savehist = 1024
   history -c
endif

# My aliases and environment variables
echo " source $HOME/.jess.csh"
source $HOME/.jess.csh

# Logo
if (! $?LogoOff ) then
   cat $HOME/.banner.color

   if ($?prompt) then
      setenv LogoOff
   endif
endif

if ($?prompt) then
   echo "End JDO .cshrc"
endif

.login

if ($?prompt) then
   echo "Beginning JDO .login"
endif

if (! $?ENVONLY) then
   # Set the TERM environment variable
   eval `tset -s -Q`
endif

if ($?prompt) then
   echo "End JDO .login"
endif

.jess.csh

# Directory short names
setenv SR $HOME/scripts

# Aliases
alias findd "$SR/sh/findfiles.sh"
alias title "$SR/sh/termtitle.sh"
alias greph "$SR/pl/hgrepl.pl -n -H"
alias h     "history"
alias cls   "clear"
alias duks  "du -k | sort -n"
alias ll    "ls -lAp \!* | more"
alias restart "echo restarting; source $HOME/.jess.csh"
alias cdsr "cd $SR"
alias vim "gvim"
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License