Skip to content

Instantly share code, notes, and snippets.

@darkgeek
Created April 22, 2015 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkgeek/889dec88d56ec4a89953 to your computer and use it in GitHub Desktop.
Save darkgeek/889dec88d56ec4a89953 to your computer and use it in GitHub Desktop.
My .cshrc file
# $FreeBSD: release/9.1.0/share/skel/dot.cshrc 242850 2012-11-10 06:05:04Z eadler $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
# more examples available at /usr/share/examples/csh/
#
alias h history 25
alias j jobs -l
alias ls ls -G
alias la ls -aF
alias lf ls -FA
alias ll ls -lAF
alias top top -P
alias netcheck systat -if 1
# A righteous umask
umask 22
set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/Apps/bin)
setenv EDITOR vim
setenv PAGER less
setenv BLOCKSIZE K
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes
setenv GREP_OPTIONS --color=auto
setenv XMODIFIERS @im=fcitx
setenv GTK_IM_MODULE fcitx
setenv GTK3_IM_MODULE fcitx
setenv NODE_PATH ~/Apps/node_modules/
setenv M2_HOME /usr/local/share/java/maven31/
setenv ANDROID_HOME ~/Apps/android-sdk/
setenv JAVA_HOME /usr/local/openjdk7/
#Display raw control characters to prevent the weird formatting issue in perldoc
setenv LESS "-r -f"
limit coredumpsize 0
set cr = "%{\e[31m%}" #Red
set cg = "%{\e[32m%}" #Green
set c0 = "%{\e[0m%}" #Default color
set noclobber
set nobeep
if ($?prompt) then
# An interactive shell -- set some stuff up
if ($uid == 0) then
set user = root
set prompt = "%B%U%n%u@%m.$cr%l$c0%b %c2 %B%#%b "
else
set prompt = "%B%U%n%u@%m.$cg%l$c0%b %c2 %B%%%b "
endif
set filec
set history = 1000
set savehist = (1000 merge)
set autolist = ambiguous
# Use history to aid expansion
set autoexpand
set autorehash
set complete='enhance'
set mail = (/var/mail/$USER)
if ( $?tcsh ) then
bindkey '\e[1~' beginning-of-line # Home
bindkey '\e[3~' delete-char # Delete
bindkey '\e[4~' end-of-line # End
bindkey "^W" backward-delete-word
bindkey -k up history-search-backward
bindkey -k down history-search-forward
endif
endif
fortune | cowsay
eval `perl -I$HOME/perl5/lib/perl5 -Mlocal::lib`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment