mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
bashrc & zshrc: remove my if from osx-functions.
This commit is contained in:
parent
808588969d
commit
2077958ac1
12
bashrc
12
bashrc
@ -746,12 +746,6 @@ fi
|
|||||||
# Show hidden files in OS X.
|
# Show hidden files in OS X.
|
||||||
|
|
||||||
function osx-show-hidden-files {
|
function osx-show-hidden-files {
|
||||||
if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then
|
|
||||||
$USERCHOICE = "TRUE"
|
|
||||||
else
|
|
||||||
$USERCHOICE = 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
defaults write com.apple.finder AppleShowAllFiles $USERCHOICE
|
defaults write com.apple.finder AppleShowAllFiles $USERCHOICE
|
||||||
echo "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.
|
# Enable AirDrop on unsupported Macs + Ethernet.
|
||||||
|
|
||||||
function osx-airdrop-listenall {
|
function osx-airdrop-listenall {
|
||||||
if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then
|
|
||||||
$USERCHOICE = "TRUE"
|
|
||||||
else
|
|
||||||
$USERCHOICE = 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE
|
defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE
|
||||||
echo "defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE"
|
echo "defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE"
|
||||||
}
|
}
|
||||||
|
11
zshrc
11
zshrc
@ -717,12 +717,6 @@ fi
|
|||||||
# Show hidden files in OS X.
|
# Show hidden files in OS X.
|
||||||
|
|
||||||
function osx-show-hidden-files {
|
function osx-show-hidden-files {
|
||||||
if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then
|
|
||||||
$USERCHOICE = "TRUE"
|
|
||||||
else
|
|
||||||
$USERCHOICE = 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
defaults write com.apple.finder AppleShowAllFiles $USERCHOICE
|
defaults write com.apple.finder AppleShowAllFiles $USERCHOICE
|
||||||
echo "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.
|
# Enable AirDrop on unsupported Macs + Ethernet.
|
||||||
|
|
||||||
function osx-airdrop-listenall {
|
function osx-airdrop-listenall {
|
||||||
if [ "$1" = "TRUE" ] || ["$1" = 1 ] ; then
|
|
||||||
$USERCHOICE = "TRUE"
|
|
||||||
else
|
|
||||||
$USERCHOICE = 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE
|
defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE
|
||||||
echo "defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE"
|
echo "defaults write com.apple.NetworkBrowser BrowseAllInterfaces $USERCHOICE"
|
||||||
|
Loading…
Reference in New Issue
Block a user