Linux bashrc备份及说明

以前图方便对bashrc做了些更改,为了迎接即将到来的12年版本的ubuntu(可能我会换成其他的系统,因为对unity太失望了),所以在此备份并注释。

alias部分:

# lx -x for short
alias ll=’ls -alF’
alias la=’ls -A’
alias l=’ls -CF’
alias lt=’ls -t’
alias llt=’ll -t’

# safe rm. -i: prompt at every action; -v lists what have been done.
alias rm=”rm -i -v”

# iopen: open file with default application.
alias iopen=”gnome-open”

# gcc-> gcc -g by default. For debugging
alias gcc=”gcc -g”

# 方便访问文件夹,赋予较长的路径别名
alias nutstored=”cd ~/program/nutstore”

# update, upgrade, etc
alias sagu=”sudo apt-get update”
alias sagg=”sudo apt-get upgrade”
alisa sagi=”sudo apt-get install”

export部分:
此部分主要是为cmbeasy和gadget指定库位置。

export CMBEASYDIR=~/program/CMBEASY_Original/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/hdf5-1.6.10/lib/
export PGPLOT_DIR=/usr/lib/ # This is for splash. Splash2 needs pgplot.
export PGPLOT_DEV=’/xw’
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGPLOT_DIR
export PATH=$PATH:/home/marvin/program/Gadget-2.0.7/Gadget2