#!/bin/bash

case "$OSTYPE"
in
  win* | msys* | cygwin*) export UNAME="Windows" ;;
  linux*)                 export UNAME="Linux"   ;;
  darwin*)                export UNAME="Mac"     ;;
  *)                      expoer UNAME="Other"   ;;
esac

if [ $UNAME == "Windows" ]
then
  # Windows System
  echo "Windows"
elif [ $UNAME == "Linux" ]
then
  # Linux System
  echo "Linux"
elif [ $UNAME == "Mac" ]
then
  # Mac System settings
  alias vi='nvim'
  alias ls='ls -G'
  alias ldd='otool -L'
  svndiff () { vimdiff <(svn diff --diff-cmd /usr/bin/diff -x -wdu "$@"); }
  export EDITOR=nvim
  export SVN_EDITOR=nvim
  # eval $(thefuck --alias)
  export PATH=/usr/local/opt/ccache/libexec:$PATH
  export PYTHONPATH=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python
else
  # Other System
  echo "Other"
fi


# Global options
export PATH=~/bin:$PATH

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH

export PS1="\033]0;\u@\h\007\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;36m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ "

echo "Processed .bash_profile"
. ~/.bashrc


