summaryrefslogtreecommitdiff
path: root/dots/home/scripts/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dots/home/scripts/platform.sh')
-rwxr-xr-xdots/home/scripts/platform.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/dots/home/scripts/platform.sh b/dots/home/scripts/platform.sh
new file mode 100755
index 0000000..9449ceb
--- /dev/null
+++ b/dots/home/scripts/platform.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "$OSTYPE" in
+ solaris*) echo "solaris" ;;
+ darwin*) echo "osx" ;;
+ linux*) echo "linux" ;;
+ bsd*) echo "bsd" ;;
+ msys*) echo "windows" ;;
+ cygwin*) echo "windows" ;;
+ *) echo "unknown" ;;
+esac