Changeset 34481 for dotfiles

Show
Ignore:
Timestamp:
07/19/09 18:40:19 (4 years ago)
Author:
kozo-ni
Message:

added os detection part

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/zsh/kozo-ni/.zshrc

    r34480 r34481  
    66export GISTY_DIR="$HOME/dev/gists" 
    77 
    8 # Java (ubuntu) 
    9 export JAVA_HOME=/usr/lib/jvm/java-6-sun 
    10 export JAVA=$JAVA_HOME/bin 
     8# OS dependent variables (Java, Macports, ...) 
     9os_type=`uname` 
     10if [ "$os_type" = "Linux" ]; then 
     11    export JAVA_HOME=/usr/lib/jvm/java-6-sun 
     12    export JAVA=$JAVA_HOME/bin 
     13elif [ "$os_type" = "Darwin" ]; then 
     14    export JAVA_HOME=/Library/Java/Home 
     15    export JAVA=$JAVA_HOME/bin 
     16    # macports 
     17    export MACPORTS_BIN=/opt/local/bin 
     18    export MACPORTS_SBIN=/opt/local/sbin 
     19    export MACPORTS=$MACPORTS_BIN:$MACPORTS_SBIN 
     20fi 
    1121 
    1222# maven 
     
    1828export PAX_CONSTRUCT=$PAX_CONSTRUCT_HOME/bin 
    1929 
    20 # macports 
    21 export MACPORTS_BIN=/opt/local/bin 
    22 export MACPORTS_SBIN=/opt/local/sbin 
    23 export MACPORTS=$MACPORTS_BIN:$MACPORTS_SBIN 
    24  
     30# PATH 
    2531export PATH=$M2:$MACPORTS:$HOME/bin:$PAX_CONSTRUCT:$JAVA:$PATH 
    2632