From 22bbe69146422dabfb5dca1f3434b223e6ecd84e Mon Sep 17 00:00:00 2001 From: Kazuki Asano Date: Sun, 8 Apr 2012 15:44:03 +0900 Subject: [PATCH] =?UTF-8?q?setup.sh=E3=82=92mac=20os=E5=87=A6=E7=90=86?= =?UTF-8?q?=E5=88=86=E5=B2=90=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 1 + .zshrc.mac | 4 ++++ .zshrc.mine | 5 ----- setup.sh | 5 +++++ 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .zshrc.mac diff --git a/.zshrc b/.zshrc index dac2045..f5fdb39 100644 --- a/.zshrc +++ b/.zshrc @@ -231,5 +231,6 @@ esac ## load user .zshrc configuration file # [ -f ${HOME}/.zshrc.mine ] && source ${HOME}/.zshrc.mine +[ -f ${HOME}/.zshrc.mac ] && source ${HOME}/.zshrc.mac [ -f ${HOME}/.zshrc.alias ] && source ${HOME}/.zshrc.alias diff --git a/.zshrc.mac b/.zshrc.mac new file mode 100644 index 0000000..2dd347b --- /dev/null +++ b/.zshrc.mac @@ -0,0 +1,4 @@ +export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home +export EDITOR=/Applications/MacVim.app/Contents/MacOS/Vim + +alias ls="ls -G --color" diff --git a/.zshrc.mine b/.zshrc.mine index 33ddfa0..c1a9661 100644 --- a/.zshrc.mine +++ b/.zshrc.mine @@ -1,7 +1,2 @@ [[ -s "/Users/kazuki/.rvm/scripts/rvm" ]] && source "/Users/kazuki/.rvm/scripts/rvm" # This loads RVM into a shell session. -export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home -export EDITOR=/Applications/MacVim.app/Contents/MacOS/Vim - -alias ls="ls -G --color" -alias tmux="tmuxx" diff --git a/setup.sh b/setup.sh index f8509ca..84d0545 100755 --- a/setup.sh +++ b/setup.sh @@ -7,3 +7,8 @@ do ln -s $HOME/dotfiles/$file $HOME/$file done +case "${OSTYPE}" in +freebsd*|darwin*) + ln -s $HOME/dotfiles/.zshrc.mac $HOME/.zshrc.mac + ;; +esac