From e35ad04f01a38a04fb707618663da2cb4345635c Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Mon, 24 Dec 2012 19:02:43 +0200 Subject: [PATCH] fix previous commit --- xsessionrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xsessionrc b/xsessionrc index e0720576..e030cfae 100644 --- a/xsessionrc +++ b/xsessionrc @@ -1,5 +1,14 @@ PATH=$HOME/.local/bin/:$HOME/.local/sbin/:$HOME/.local/games/:/opt/local/bin/:/opt/local/sbin:/opt/local/games/:$PATH +# Sets environment variable CPUARCH to output of "uname -p" & UNAME to "uname" +UNAME=`uname` +CPUARCH=`uname -p` + +# If we are on Mac, show hidden files in Finder and enable AirDrop over Ethernet and on unsupported (by Apple) Macs +if [ $UNAME = "Darwin" ]; then + defaults write com.apple.finder AppleShowAllFiles TRUE && defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 +fi + # Use gpg-agent eval $(gpg-agent --daemon)