2003년 4월 10일 목요일

bash shell 설정파일 예제(.bashrc)

GNU (http://www.gnu.org) -> Manuals Online (http://www.gnu.org/manual/manual.html)
-> bash-2.05a (http://www.gnu.org/manual/bash-2.05a/bashref.html)

http://www.gnu.org/software/bash/bash.html
--------------------------------------------------
# .bashrc

# Prompt design
PS1="\[\033[34m\]\[\033[1;36m\][\u@\h \W] \[\033[34m\]\[\033[0;37m\]"

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

# Read first /etc/inputrc if the variable is not defined, and after
# the /etc/inputrc include the ~/.inputrc

[ -z $INPUTRC ] && export INPUTRC=/etc/inputrc

# User specific aliases and functions
alias ls='gls -F --color'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias vi='vim'

PATH=$PATH:/opt/IBMJava2-13/bin/:/home/ilashman/local/rrdtool/bin:.:

set -o emacs
------------------------------------------------------------------
예제 2 (ilashman@adam.kaist.ac.kr)
------------------------------------------------------------------
if [ -f /etc/bashrc ]; then
    ./etc/bashrc
fi
PATH=.:/usr/local/bin/:/usr/bin:/bin/:/usr/ucb:/usr/X11R6/bin:/usr/sbin/:/sbin:/usr/local/lang/java/bin:/usr/bin/X11:/usr/openwin/bin:/moses/u5/cs320/bin/:~/nachos/bin:
PS1="\[\033[34m\]\[\033[1;36m\][\u@\h \W] \[\033[34m\]\[\033[0;37m\]"

PAGER="less -i"
export PAGER EDITOR

export  LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

alias vi='vim'
alias cp='cp -i'
alias mv='mv -i'
alias ls='/usr/local/bin/ls -F --color=auto'
alias clear='/usr/local/bin/clear'

alias hanterm="hanterm -hfn *gothic* -bg black -fg white"
alias xterm="xterm  -e /bin/bash -login"

set -o emacs

------------------------------------------------------------------
예제 3 (ilashman@tmax.neowiz.com)
------------------------------------------------------------------
# .bashrc

# User specific aliases and functions

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

export EDITOR=vim

export PATH=$PATH:/home/ilashman/local/rrdtool/bin:/home/ilashman/local/mysql/bin

export CVSROOT="/link/cvsroot"

export PERL5LIB=/home/ilashman/local/perl/lib/5.8.0:/home/ilashman/local/perl/lib/site_perl/5.8.0:/home/ilashman/public_html/mondy/rrd_pet/lib

#alias ghc='/home/ilashman/local/ghc-6.0/bin/i386-unknown-linux/ghc'
#alias ghci='/home/ilashman/local/ghc-6.0/bin/i386-unknown-linux/ghci'
#alias hugs='/home/ilashman/local/bin/hugs'

# mondy2를 위한 설정
#PERL5LIB=/home/ilashman/local/perl5/lib/perl5/5.8.0:/home/ilashman/local/perl5/lib/perl5/site_perl/5.8.0:/home/ilashman/local/rrdtool/lib/perl:/home/ilashman/public_html/mondy/rrd_pet/lib:/home/ilashman/local/perl5/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
#export PERL5LIB

export LANG=en_US.iso885915

# HUB, PM test를 위한 설정
CVSROOT=:pserver:ilashman@search28.sayclub.com:/svc/cvsroot
export CVSROOT
ACE_ROOT=/home/ilashman/local/src/ACE_wrappers
export ACE_ROOT
export LD_LIBRARY_PATH=/home/ilashman/local/src/ACE_wrappers/ace:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/ilashman/local/ElectricFence-2.2.2/lib:$LD_LIBRARY_PATH

ulimit -c unlimited

# mm(zendprof가 사용)를 위한 설정
export PATH=/home/ilashman/local/mm-1.3.0/bin:$PATH
export LIBDIR=/home/ilashman/local/mm-1.3.0/lib:$LIBDIR
export LD_LIBRARY_PATH=/home/ilashman/local/mm-1.3.0/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=/home/ilashman/local/mm-1.3.0/lib:$LD_RUN_PATH

# zendprof를 위한 설정
export LIBDIR=/home/ilashman/local/src/zendprof/modules:$LIBDIR
export LD_LIBRARY_PATH=/home/ilashman/local/src/zendprof/modules:$LD_LIBRARY_PATH
export LD_RUN_PATH=/home/ilashman/local/src/zendprof/modules:$LD_RUN_PATH

댓글 없음:

댓글 쓰기