.cshrc
# -*- mode: sh; -*-
umask 077
source ${HOME}/.csh/env
source ${HOME}/.csh/alias
source ${HOME}/.csh/settings
if ( ${?edit} ) then
cat <<EOF
[1;36m
.-.
/v\\ L I N U X
// \\\\ Fear the Penguin!
/( )\\
^^-^^
[32m
EOF
fortune
echo '[m'
endif
.csh/env
# -*- mode: sh; -*-
setenv CZREN_BAK
setenv EDITOR 'emacs -nw'
setenv EMAIL '...'
setenv LS_COLORS 'no=00:fi=00:di=01;34:ln=04;31:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;33:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tbz2=00;31:*.png=01;35:*.bmp=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.pcx=01;35:*.ppm=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.wav=00;32:*.mp3=00;32:*.au=00;32:*.aiff=00;32:*.mid=00;32:*.voc=00;32:*.c=00;32:*.cc=00;32:*.h=00;32:*.hh=00;32:*.tex=00;32:*···=41;37:*.o=00;35:*~=40;37:*akefile=04;35:*EADME=04;31:*index.html.gz=04;36:*index.html=04;36:*index.htm.gz=04;36:*index.htm=04;36:*class=00;32:'
setenv PAGER 'w3m'
setenv PAPERSIZE 'a4'
setenv PATH "${HOME}/.bin:${HOME}/.local/bin:${PATH}"
setenv PYTHONPATH "${HOME}/.local/lib/python"
setenv REPLYTO '...'
setenv TEXINPUTS "${HOME}/.local/share/tex"
unsetenv LANG
unsetenv LC_ALL
setenv LC_COLLATE 'POSIX'
setenv LC_DATE 'POSIX'
setenv LC_CTYPE 'en_GB.utf8'
setenv LC_NUMERIC 'en_GB.utf8'
setenv LC_MONETARY 'en_GB.utf8'
setenv LC_MESSAGES 'en_GB.utf8'
setenv LC_PAPER 'en_GB.utf8'
setenv LC_NAME 'en_GB.utf8'
setenv LC_ADDRESS 'en_GB.utf8'
setenv LC_TELEPHONE 'en_GB.utf8'
setenv LC_MEASUREMENT 'en_GB.utf8'
setenv LC_IDENTIFICATION 'en_GB.utf8'
.csh/alias
# -*- mode: sh; -*-
alias . 'source'
alias _ '( \!* & ) >& /dev/null'
alias cdc "cd .."
alias cdcc "cd ../.."
alias cdccc "cd ../../.."
alias cdcccc "cd ../../../.."
alias cdd "cd -"
alias cp "cp -vir"
alias cursor 'echo "[?25h"'
alias df 'df -h'
alias dfcolour "sed -e 's//^[/g' -e 's/\(^-.*\)/[31m\1[m/' -e 's/\(^\+.*\)/[34m\1[m/' -e 's/\(^@.*\)/[32;4m\1[m/' -e 's/\(^Index.*\)/[32;7m\1[m/' -e 's/\(^=.*\)/[32;7m\1[m/' -e 's/\(^diff.*\)/[32;7m\1[m/'"
alias diff 'diff -du \!* | dfcolour | $PAGER'
alias dir "echo \'Tis not windows, you bastard\!"
alias downcase 'ren d'
alias e '${EDITOR}'
alias ID3reset 'eyeD3 --remove-all'
alias ID3tov2.4 'eyeD3 --to-v2.4'
alias feh 'feh -g+1280+0 -^ "%n [%u of %l] - %wx%h %S %t %z" -.'
alias fortune 'fortune -a'
alias free 'free -m'
alias g,Show 'git show'
alias g,Stash 'git stash'
alias g,Stash-list 'git stash list'
alias g,Stash-show 'git stash show'
alias g,Stash-apply 'git stash apply'
alias g,Unstash 'git stash pop'
alias g,Stash-drop 'git stash drop'
alias g,add 'git add -v'
alias g,branch 'git branch'
alias g,checkout 'git checkout'
alias g,clean 'git clean -f -d'
alias g,commit 'git commit'
alias g,diff 'git diff --minimal --color=always'
alias g,fetch 'git fetch --all'
alias g,grep 'git grep --color=auto'
alias g,history 'git whatchanged \!* | dfcolour | $PAGER'
alias g,kirsi 'git cherry-pick'
alias g,ls 'git ls-files --exclude-standard'
alias g,log 'git log --graph --all --decorate'
alias g,merge 'git merge --no-commit --squash'
alias g,modules 'git submodule'
alias g,pull 'git pull --progress --rebase'
alias g,push 'git push'
alias g,rebase 'git rebase'
alias g,reset 'git reset --hard'
alias g,status 'git status'
alias g,tag 'git tag'
alias g,version 'git log | head -n1 | cut -f2 -d" "'
alias gqview 'echo you mean geeqie'
alias grep 'egrep --color'
alias h 'history'
alias hexdump 'hexdump -C'
alias jobs 'jobs -l'
alias less 'less -R'
alias ls "ls -al --color=always"
alias mkcd 'mkdir \!* && cd \!*'
alias more 'more -f'
alias mplayer 'mplayer -geometry +1280+0'
alias mv "mv -vi"
alias ps 'ps -FH'
alias purify 'ren p'
alias rm 'rm -vI'
alias rr '\!* `recent`'
alias refresh 'source ~/.cshrc'
alias rename 'ren r'
alias renmul 'ren i'
alias rndls '\ls -1 \!* | shuf'
alias rsync 'rsync -avz'
alias screen 'screen -DR'
alias upcase 'ren u'
alias vi "vim"
alias viewman "nroff -man \!* | w3m"
alias zl "unzip -l"
.csh/settings
# -*- mode: sh; -*-
set color
set noclobber
set histdup = 'erase'
set cdpath = ("${HOME}")
set correct = 'cmd'
set history = '1000'
set listmaxrows = '1000'
set prompt = '%{\n[22;34m%}<%d %D. %w %Y, %P> %{[35m%}<%l> %{[31m%}<%?> %{[34m%}<%n@%m>\n%{[1;32m%}==> %~ >%{[m%} '
set prompt2 = '%{[1;32m%}%R ==>%{[m%} '
set prompt3 = '%{#6[22;32m%}CORRECT>%R (y|n|e|a)?%{[m%} '