bashrc & zshrc: remove my if from osx-functions.

This commit is contained in:
Mikaela Suomalainen 2014-05-13 15:43:18 +03:00
parent 808588969d
commit 2077958ac1
2 changed files with 0 additions and 23 deletions

12
bashrc
View File

@ -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"
}

11
zshrc
View File

@ -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"