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)