From 2077958ac1bba022314637345beea4318fbfb10a Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 13 May 2014 15:43:18 +0300 Subject: [PATCH] bashrc & zshrc: remove my if from osx-functions. --- bashrc | 12 ------------ zshrc | 11 ----------- 2 files changed, 23 deletions(-) diff --git a/bashrc b/bashrc index 7aa931e9..bf7e54f8 100644 --- a/bashrc +++ b/bashrc @@ -746,12 +746,6 @@ fi # Show hidden files in OS X. function osx-show-hidden-files { -if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then - $USERCHOICE = "TRUE" -else - $USERCHOICE = 0 -fi - defaults write com.apple.finder AppleShowAllFiles $USERCHOICE echo "defaults write com.apple.finder AppleShowAllFiles $USERCHOICE" } @@ -759,12 +753,6 @@ echo "defaults write com.apple.finder AppleShowAllFiles $USERCHOICE" # Enable AirDrop on unsupported Macs + Ethernet. function osx-airdrop-listenall { -if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then - $USERCHOICE = "TRUE" -else - $USERCHOICE = 0 -fi - defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE echo "defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE" } diff --git a/zshrc b/zshrc index 4ba03001..ef3663b7 100644 --- a/zshrc +++ b/zshrc @@ -717,12 +717,6 @@ fi # Show hidden files in OS X. function osx-show-hidden-files { -if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then - $USERCHOICE = "TRUE" -else - $USERCHOICE = 0 -fi - defaults write com.apple.finder AppleShowAllFiles $USERCHOICE echo "defaults write com.apple.finder AppleShowAllFiles $USERCHOICE" } @@ -730,11 +724,6 @@ echo "defaults write com.apple.finder AppleShowAllFiles $USERCHOICE" # Enable AirDrop on unsupported Macs + Ethernet. function osx-airdrop-listenall { -if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then - $USERCHOICE = "TRUE" -else - $USERCHOICE = 0 -fi defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE echo "defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE"