[zsh] Add write-defaults function for Darwin systems

This commit is contained in:
Eryn Wells 2016-11-02 09:40:05 -07:00
parent efc80858d1
commit fed2437470

View file

@ -22,3 +22,10 @@ SOUNDSDIR=/System/Library/Sounds
alias glass="afplay $SOUNDSDIR/Glass.aiff" alias glass="afplay $SOUNDSDIR/Glass.aiff"
alias funk="afplay $SOUNDSDIR/Funk.aiff" alias funk="afplay $SOUNDSDIR/Funk.aiff"
unset SOUNDSDIR unset SOUNDSDIR
function write-defaults
{
# Dim dock icons of apps that have been hidden.
defaults write com.apple.Dock showhidden -boolean yes
killall Dock
}