]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Wed, 20 Jan 2010 06:16:41 +0000 (15:16 +0900)
committerPHO <pho@cielonegro.org>
Wed, 20 Jan 2010 06:16:41 +0000 (15:16 +0900)
dot-files/_zshenv

index 49db808050f639f87acf3c1e7c7dca0e51ef0bc0..bde4c61f83963cf97d4197659540fc7c7b6ee2de 100644 (file)
@@ -50,6 +50,13 @@ append_path PKG_CONFIG_PATH /usr/lib/pkgconfig
 append_path PKG_CONFIG_PATH /usr/local/lib/pkgconfig
 append_path PKG_CONFIG_PATH /usr/pkg/lib/pkgconfig
 
+# TMPDIR (Only for Darwin)
+if [ `uname` = "Darwin" ]; then
+    if [ "$TMPDIR" = "" ]; then
+        export TMPDIR=`getconf DARWIN_USER_TEMP_DIR`
+    fi
+fi
+
 # DYLD_FALLBACK_LIBRARY_PATH (Only for Darwin)
 export DYLD_FALLBACK_LIBRARY_PATH=""
 #append_path DYLD_FALLBACK_LIBRARY_PATH /usr/lib