bashrc設定切り分け

HOMEをNFS共有してるのでこんな感じにFreeBSD環境、Linux 64bit環境、Linux 32bit環境と切り分けてる。

if [ `uname` = "FreeBSD" ]; then
  source $HOME/.shell.d/bashrc.bsd
elif [ `uname` = "Linux" ]; then
  source $HOME/.shell.d/bashrc.linux
  if [ `uname -m` = "x86_64" ]; then
    source $HOME/.shell.d/bashrc.linux64
  elif [ `uname -m` = "i686" ]; then
    source $HOME/.shell.d/bashrc.linux32
  fi
else
  echo "Unknown Machine"
fi

test