我的bash配置文件bashrc

我的bash配置文件bashrc:里面有关于grads,NCL,MATLAB,Texlive1023,Python的路径配置等

/d3是我的一块大硬盘,大的程序默认装在这里。

这样系统挂了重装的时候,大程序(例如matlab)就不用再安装了,直接导入这个bashrc配置文件就可以了。

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions
#
#*****************************************
#***by wuxuping
#****************************************
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# -> Prevents accidentally clobbering files.
alias mkdir='mkdir -p'
#-------------------------------------------------------------
alias h='history'
alias j='jobs -l'
alias which='type -a'
alias ..='cd ..'
#-------------------------------------------------------------
# Pretty-print of some PATH variables:
alias path='echo -e ${PATH//:/\\n}'
alias libpath='echo -e ${LD_LIBRARY_PATH//:/\\n}'
#-------------------------------------------------------------
alias du='du -kh'    # Makes a more readable output.
alias df='df -kTh'
#
#-------------------------------------------------------------
# The 'ls' family (this assumes you use a recent GNU ls).
#-------------------------------------------------------------
# Add colors for filetype and  human-readable sizes by default on 'ls':
alias ls='ls -hF --color'
alias lx='ls -lXB'         #  Sort by extension.
alias lk='ls -lSr'         #  Sort by size, biggest last.
alias lt='ls -ltr'         #  Sort by date, most recent last.
alias lc='ls -ltcr'        #  Sort by/show change time,most recent last.
alias lu='ls -ltur'        #  Sort by/show access time,most recent last.
alias l='ls -CF'        #  Sort by/show access time,most recent last.
#
# The ubiquitous 'll': directories first, with alphanumeric sorting:
alias ll="ls -lv --group-directories-first"
alias lm='ll |more'        #  Pipe through 'more'
alias lr='ll -R'           #  Recursive ls.
alias la='ll -A'           #  Show hidden files.
alias tree='tree -Csuh'    #  Nice alternative to 'recursive ls' ...
#-------------------------------------------------------------
alias dir="ls"                      # 模拟windows
alias lrd="ls -lR|grep '^[dl]'"     # 递归列出所有的目录,包括链接
alias lsd="ls -l|grep '^[dl]'"     # 列出所有的目录,包括链接
#-------------------------------------------------------------
#
# My System Environment Variables
#-------------------------------------------------------------
# $MYDIR and $MYLOCAL For most application installer
export MYDIR="/d3"
export MYLOCAL="$MYDIR/local"
export PATH=".:$MYDIR:$MYLOCAL:$MYLOCAL/bin:/usr/local/bin:$PATH"
#-------------------------------------------------------------
#
#only needed for MWRT
export PATH="$MYDIR/MWRT/bin:$PATH"
#-------------------------------------------------------------
#
#for NCL 6.1.2
export NCARG_ROOT="$MYLOCAL/NCL612"
export NCARG_USRRESFILE="$NCARG_ROOT/hluresfile"
#export NCARG_RANGS="$NCARG_ROOT/lib/ncarg/database/rangs"
#export NCARG_RANGS="$NCARG_ROOT/rangs"
#export NDV_COLORMAP_PATH="$NCARG_ROOT/lib/ncarg/colormaps"
export NCL_DEF_SCRIPTS_DIR="$NCARG_ROOT/NCL_DEF_SCRIPTS_DIR"
export NCL_DEF_LIB_DIR="$NCARG_ROOT/NCL_DEF_LIB_DIR"
export PATH="$NCARG_ROOT/bin:$PATH"
#-------------------------------------------------------------
#
#for Grads 2.x.x
export GADDIR="$MYLOCAL/grads"
export GASCRP="$GADDIR/scripts"
export GAUDFT="$GADDIR/udft"
export GASHP="$GADDIR/GASHP"
export PATH="$GADDIR/bin:$PATH"
#-------------------------------------------------------------
#
#for texlive 2013
export TexLiveDIR="/usr/local/texlive/2013"
export PATH="$TexLiveDIR/bin/x86_64-linux:$PATH"
MANPATH=$TexLiveDIR/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=$TexLiveDIR/texmf-dist/doc/info:$INFOPATH; export INFOPATH
#-------------------------------------------------------------
#
#for PGI
export PATH="/opt/pgi/linux86-64/10.6/bin:$PATH"
#-------------------------------------------------------------
#
#for libs4cdo
#export LIBS4CDO="$MYLOCAL/lib4cdo/libs4cdo-0.0.10/build"
#-------------------------------------------------------------
#
# For the Python release of Anaconda
export PATH="$MYLOCAL/anaconda/bin:$PATH"
#-------------------------------------------------------------
# For GEOS
export GEOS_DIR="$MYLOCAL/GEOS_DIR"
#-------------------------------------------------------------
#
# For IDL8
export PATH="$MYLOCAL/IDL8/idl82/bin:$PATH"
#-------------------------------------------------------------
#

# added by Anaconda 1.8.0 installer
export PATH="/d3/local/anaconda/bin:$PATH"


你可能感兴趣的:(Linux)