[zsh] Add write-defaults function for Darwin systems
This commit is contained in:
		
							parent
							
								
									efc80858d1
								
							
						
					
					
						commit
						fed2437470
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -22,3 +22,10 @@ SOUNDSDIR=/System/Library/Sounds
 | 
			
		|||
alias glass="afplay $SOUNDSDIR/Glass.aiff"
 | 
			
		||||
alias funk="afplay $SOUNDSDIR/Funk.aiff"
 | 
			
		||||
unset SOUNDSDIR
 | 
			
		||||
 | 
			
		||||
function write-defaults
 | 
			
		||||
{
 | 
			
		||||
    # Dim dock icons of apps that have been hidden.
 | 
			
		||||
    defaults write com.apple.Dock showhidden -boolean yes
 | 
			
		||||
    killall Dock
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue