User Tools

Site Tools


en:linux:scripts:bashrc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:linux:scripts:bashrc [2011/04/28 14:34] (current)
Line 1: Line 1:
 +===== /​home/<​username>/​.bashrc =====
 +
 +Bash config (non-login)
 +
 +<​code>​
 +# settings for login shell
 +if [ "​$LOGIN_SHELL"​ == "​1"​ ]
 +then
 + # default editor
 + EDITOR="​vim"​
 +fi
 +
 +# settings for interactive shell
 +if [ "​$PS1"​ ]
 +then
 + # set PATH, LD_LIBRARY_PATH settings
 + export PATH="​$PATH:​$HOME/​bin"​
 + export LD_LIBRARY_PATH="​$LD_LIBRARY_PATH:​$HOME/​lib"​
 +
 + #​export ROOTSYS="/​afs/​domain.com/​sw/​lcg/​app/​releases/​ROOT/​5.27.06/​x86_64-slc5-gcc43-dbg/​root"​
 + export ROOTSYS="/​usr/​local/​root"​
 + #​export LIBXML2_DIR="/​afs/​domain.com/​sw/​lcg/​external/​libxml2/​2.6.16/​slc3_ia32_gcc323"​
 + LODIR="/​usr/​lib/​libreoffice/"​
 + JAVADIR="/​opt/​java/​jre"​
 +
 + export PATH="​$HOME/​fun/​gps/​bin/:​$PATH:​$ROOTSYS/​bin:​$LODIR/​program:​$JAVADIR/​bin:​$HOME/​fun/​photos/​bin"​
 + export LD_LIBRARY_PATH="​$LD_LIBRARY_PATH:​$ROOTSYS/​lib:​$JAVADIR/​lib"​
 +
 + # default editor
 + EDITOR="​vim"​
 + SVN_EDITOR="​vim"​
 +
 + # open office settings
 + export OOO_FORCE_DESKTOP=kde
 +
 + # CASTOR setup
 + export RFIO_USE_CASTOR_V2=YES
 + export STAGE_HOST=castorpublic
 + export STAGE_SVCCLASS=default
 +
 + # bash completition
 + . /​etc/​bash_completion
 +
 + # default CVS settings
 + export CVSROOT=":​ext:​isscvs.domain.com:/​local/​reps/​totem"​
 + export CVS_RSH="​ssh"​
 +
 + # TeX search path (the initial colon stands for the other (default) search directories)
 + export TEXINPUTS=:/​home/<​username>/​tex/​kaspiTeX/​
 +
 + # reset MANPATH, then the search directories are given by man.conf
 + unset MANPATH
 +
 + # aliases
 + alias ll='ls -l'
 + alias la='ls -la'
 + alias rl='​root -l'
 + alias rcc='​gcc `root-config --libs` -lMinuit `root-config --cflags` `gccflags -incs`'​
 + alias dd='du -h --max-depth=1'​
 + alias lpr="​lpr -h -P589-r04-hp"​
 + alias clpr="​lpr -h -P589-r04-tek"​
 + alias mathematica='/​afs/​domain.com/​project/​parc/​math60/​bin/​mathematica'​
 + alias v='vim -p'
 + alias vt='​vim --servername tex --remote-tab-silent'​
 + alias dvipdf='​dvipdf -sPAPERSIZE=a4'​
 + alias man='​man -P most'
 + alias svndiff="​svn diff --diff-cmd gvimdiff-svn-wrapper" ​
 +
 +    # set a usefule prompt
 +    export PS1='​\[\033[00;​32m\]\w>​ \[\033[00m\]'​
 +
 +    # don't put duplicate lines in the history, see bash(1) for more options
 +    export HISTCONTROL=ignoreboth
 + export HISTIGNORE='​cd "​`echo*'​
 +
 +    # check the window size after each command and, if necessary, update the values of LINES and COLUMNS.
 +    #shopt -s checkwinsize
 +
 +    # enable color support of ls and also add handy aliases
 + if [ "​$TERM"​ != "​dumb"​ ]
 + then
 + eval `dircolors -b`
 + alias ls='ls --color=auto'​
 +    fi
 +
 + # settings for X terminals
 + if [ "​$TERM"​ == "​xterm"​ ]
 + then
 +    # if this is an xterm set the title to user@host:​dir
 + PROMPT_COMMAND='​echo -ne "​\033]0;​${PWD}\007"'​
 +    ​ #​PROMPT_COMMAND=''​
 +
 + # visual editor
 + VISUAL="​gvim"​
 +
 + # aliases
 + alias v='​gvim -p'
 + alias vt='​gvim --servername tex --remote-tab-silent'​
 + fi
 +fi
 +</​code>​
  
en/linux/scripts/bashrc.txt · Last modified: 2011/04/28 14:34 (external edit)