bashrc & zshrc: automatically enable hidden files + airdrop on Mac.

Almost fixes #13
This commit is contained in:
Mika Suomalainen 2012-12-24 18:59:14 +02:00
parent f331acbdf5
commit 2479d7971a
2 changed files with 14 additions and 2 deletions

8
bashrc
View File

@ -183,9 +183,15 @@ export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# Sets environmnet variable CPUARCH to output of "uname -p"
# 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
##### Aliases RJ706I #####
# To get sudo work with aliases.

8
zshrc
View File

@ -113,8 +113,14 @@ export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# Sets environmnet variable CPUARCH to output of "uname -p"
# Sets environment variable CPUARCH to output of "uname -p" and UNAME to "uname"
CPUARCH=`uname -p`
UNAME=`uname`
# 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
##### Aliases RJ706I #####