Created
June 12, 2012 15:49
-
-
Save alexshires/2918328 to your computer and use it in GitHub Desktop.
as1905 .bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
export PYTHONPATH=$HOME/local/lib64/python2.4/site-packages | |
export LHCBDISK2=/vols/lhcbdisk02/ashires | |
export LHCBDISK3=/vols/lhcbdisk03/ashires | |
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/vols/grid/ui/3.2.8-0.sl5/d-cache/dcap/lib64 | |
# LHCB@Imperial login script | |
#source /home/hep/lhcb/grouplogin/lhcb_login.sh | |
#interactive/non-interactive lognin stuff | |
case "$-" in | |
*i*) . /home/hep/lhcb/grouplogin/lhcb_login.sh | |
esac | |
#chaing the bash history | |
export HISTIGNORE="ls:ll:la:cd:ls -lastrh" | |
#HISTFILESIZE=10000000 | |
HISTSIZE=100000 | |
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups | |
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoreboth | |
export HISTCONTROL=ignoreboth:erasedups | |
shopt -s histappend | |
shopt -s checkwinsize | |
#for microsoft like vim copy and paste commands | |
#source /usr/share/vim/vim70/mswin.vim | |
alias sshlxplus="ssh -XYC ashires@lxplus.cern.ch" | |
alias sshlx05="ssh -XYC as1905@lx05" | |
alias sshlx06="ssh -XYC as1905@lx06" | |
alias root="root -l" | |
alias qstats="~sr505/Scripts/QSTAT.py" | |
alias cernauth="kinit ashires@CERN.CH" | |
#------------------------------------------------------------- | |
# The 'ls' family (this assumes you use a recent GNU ls) | |
#------------------------------------------------------------- | |
alias ll="ls -lh" | |
alias ls='ls -hF --color' # add colors for filetype recognition | |
alias la='ls -Alh' # show hidden files | |
alias lx='ls -lXBh' # sort by extension | |
alias lk='ls -lSrh' # sort by size, biggest last | |
alias lc='ls -ltcrh' # sort by and show change time, most recent last | |
alias lu='ls -lturh' # sort by and show access time, most recent last | |
alias lt='ls -ltrh' # sort by date, most recent last | |
alias lm='ls -alh |more' # pipe through 'more' | |
alias lr='ls -lRh' # recursive ls | |
alias tree='tree -Csu' # nice alternative to 'recursive ls' | |
alias l='ls -CFh' | |
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
eval "`dircolors -b`" | |
alias ls='ls --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
alias list='ls -lastrh' | |
alias cu='~sr505/Scripts/check_usage.sh' | |
xset b off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Anywhere before the bashrc exits put something like this: