# -*- shell-script -*- # # Joerg Arndt's .profile # ... online at http://www.jjj.de/ # your feedback is welcome mailto: arndt (AT) jjj.de # # version: 2010-March-01 (09:52) # # You may want to make your .zshrc and .bashrc a link to this file: # ln -sv .profile .zshrc # ln -sv .profile .bashrc # # this give other users a way to check if they like this configuration: # JJHOME=~jj . ~jj/.profile if [ -z "$JJHOME" ]; then JJHOME=$HOME; fi if [ -t 0 ]; then # echo only if on tty # if [ -z "$JJ_CONFIG_READ" ]; then # echo '~/.profile ...'; # echo -n '-'; # else # echo '~/.profile .....'; # echo -n '+'; # fi if [ "$JJHOME" != "$HOME" ]; then echo " using JJHOME=$JJHOME"; fi fi if [ "$TERM" = "dumb" ]; then unset DISPLAY; fi ### cf. http://zshwiki.org/home/zen ## FAILS #fpath=( # $fpath # /home/jj/.zen/zsh/scripts # /home/jj/.zen/zsh/zle ) #autoload -U zen ##INF: Example: ##% zen search ##% zen install zsh/scripts/zpaste # need some method to determine whether terminal can display colors: if [ "$TERM" != "dumb" ]; then # dir-colors settings: if [ -x /usr/bin/dircolors ] ; then if [ -r $JJHOME/.jjdircolors ] ; then eval $(dircolors -b $JJHOME/.jjdircolors); fi; fi # define "color-variables": test -f $JJHOME/.jjtermcolors && . $JJHOME/.jjtermcolors # ... these are unset near the end of this file fi ## "$TERM" #export MAIL=/var/mail/$LOGNAME export MAIL=$HOME/mail/.incoming #unset MAIL unset MAILPATH unset MAILCHECK # A colon-separated list of suffixes to ignore when performing # filename completion A file name whose suffix matches one of the # entries in `FIGNORE' is excluded from the list of matched file # names. A sample value is `.o:~' FIGNORE=".o:~" # The number of commands to remember in the command history # The default value is 500. export HISTSIZE=3000 export HISTFILESIZE=${HISTSIZE} # The name of the file in which command history is # saved. The default value is ~/.bash_history or ~/.zsh_history. # If unset, the command history is not saved when an # interactive shell exits. #unset HISTFILE # if home dir contains a link make dirs show it as ~ anyway: export HOME=$(cd; pwd;) # logout (only) after typing ignoreeof plus one ctrl-d: export ignoreeof=1 # max core file size: ulimit -c 0 # delete ugly emacs .save-xyz files: #rm -f $JJHOME/.saves-*~ # we are in an xterm and DISPLAY is not set: # probably a root xterm was opened, so we set DISPLAY #if [ "$TERM" = "xterm" -a -z "$DISPLAY" ]; then # export DISPLAY=:0 #fi #if test -n "$GOTODIR"; then # test -d $GOTODIR && cd $GOTODIR; #fi #if [ -z "$JJ_CONFIG_READ" ]; then # stuff to do once only if [ "$EUID" = "0" ]; then # for root: # export PATH=$PATH:/root/bin:/usr/local/bin:/sbin ; true; else # for non-root: export PATH=$PATH:/sbin:/usr/sbin ; fi if [ -d ~/bin ]; then export PATH=$PATH:~/bin; fi # export PATH=$PATH:/usr/local/axiom/mnt/linux/bin # export PATH=$PATH:/opt/axiom/mnt/linux/bin export PATH=$PATH:./ #fi if test -n "$BASH_VERSION"; then # ------- BASH ONLY . $JJHOME/.jjbashrc . $JJHOME/.alias fi # ------- BASH ONLY if test -n "$ZSH_VERSION"; then # ------- ZSH ONLY . $JJHOME/.jjzshrc . $JJHOME/.alias fi # ------- end ZSH ONLY # unset color stuff: (else 'set' and 'env' produce rather colorful output) test -f $JJHOME/.jjtermcolors && . $JJHOME/.jjtermcolors unset ; # # ... and # keep in mind we've seen this file: export JJ_CONFIG_READ=1 ctwm -version &>/dev/null && export WINDOWMANAGER=ctwm export XEDITOR="/usr/bin/emacs -no-site-file" export EDITOR="/usr/bin/emacs -no-site-file" export VISUAL="/usr/bin/emacs -no-site-file" export TEXEDIT="/usr/bin/emacs -no-site-file +%d %s" export MPEDIT="/usr/bin/emacs -no-site-file +%d %s" export DICTIONARY=american export PAGER=less #export LESSCHARSET=latin1 export LESS=-iM export LC_PAPER=en_US.UTF-8 export LC_MESSAGES=en_US.UTF-8 export LC_COLLATE=C export LC_CTYPE=en_US.UTF-8 #export TEXDOCVIEW_dvi='xdvi %s' export TEXDOCVIEW_ps='gv %s' export TEXDOCVIEW_pdf='gv %s' export TEXDOCVIEW_html='links -g %s' # for svgalib: #export GSVGAMODE=G1024x768x64k export MINICOM="-m -c on" #export MALLOC_CHECK_=0 # for hfloat/fxtmult: export CACHE_BYTES=128k export NOSWAP_BYTES=512M # for grfxt: #export FB_XRES=1280 #export FB_KBYTE=16384 #export FB_DEV='/dev/fb0' #export FRAMEBUFFER='/dev/fb0' # local stuff (e.g. export DISPLAY=0:0) # may override some vars, therefore moved to end test -f ~/.jjlocal && source ~/.jjlocal test -f ~/.jjlocal-${HOSTNAME} && source ~/.jjlocal-${HOSTNAME} if type dnsdomainname >/dev/null ; then DN=$(dnsdomainname); test -f ~/.jjlocal-$DN && source ~/.jjlocal-$DN ; fi #### end of file ####