-# Determine host platform
-
-if [ "$(uname)" == "SunOS" ]; then
- PLATFORM="SunOS";
-elif [ "$(uname)" == "MINGW32_NT-6.1" ]; then
- PLATFORM="Msys";
-elif [ "$(uname)" == "Darwin" ]; then
- PLATFORM="Darwin";
-elif [ "$(uname -o)" == "GNU/Linux" ]; then
- PLATFORM="Linux";
-elif [ "$(uname -o)" == "Msys" ]; then
- PLATFORM="Msys";
-elif [ "$(uname -o)" == "Cygwin" ]; then
- PLATFORM="Cygwin";
-else
- PLATFORM="Unknown";
-fi
-export PLATFORM
-echo Now running on $PLATFORM platform;
-
# Platform specific
if [ "$PLATFORM" == "Msys" ]; then
# Mount the portable Documents folder, if it isn't already
+[ "$PLATFORM" == "Darwin" ] && return;\r
+\r
echo -ne '\eP\e]10;#839496\a' # Foreground -> base0\r
echo -ne '\eP\e]11;#002B36\a' # Background -> base03\r
\r
# If not running interactively, don't do anything
[[ "$-" != *i* ]] && return
+# Determine host platform
+if [ "$(uname)" == "SunOS" ]; then
+ PLATFORM="SunOS";
+elif [ "$(uname)" == "Darwin" ]; then
+ PLATFORM="Darwin";
+elif [ "$(uname -o)" == "GNU/Linux" ]; then
+ PLATFORM="Linux";
+elif [ "$(uname -o)" == "Msys" ]; then
+ PLATFORM="Msys";
+elif [ "$(uname -o)" == "Cygwin" ]; then
+ PLATFORM="Cygwin";
+else
+ PLATFORM="Unknown";
+fi
+export PLATFORM
+echo Now running on $PLATFORM platform
+
+
# Load settings
for file in ${HOME}/.bash/*; do
[ -f "$file" ] && source "$file";