[zsh] Update shell init: rc
This commit is contained in:
		
							parent
							
								
									b09d523218
								
							
						
					
					
						commit
						c30b46a88b
					
				
					 26 changed files with 479 additions and 462 deletions
				
			
		
							
								
								
									
										21
									
								
								zsh/func/darwin_init_once
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								zsh/func/darwin_init_once
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
#!/usr/bin/env zsh
 | 
			
		||||
# Eryn Wells <eryn@erynwells.me>
 | 
			
		||||
 | 
			
		||||
autoload darwin_icloud_drive_path
 | 
			
		||||
autoload darwin_configure_screenshots_directory
 | 
			
		||||
 | 
			
		||||
function darwin_init_once
 | 
			
		||||
{
 | 
			
		||||
    # Dim dock icons of apps that have been hidden.
 | 
			
		||||
    shell-log "Auto-hiding Dock"
 | 
			
		||||
    defaults write com.apple.Dock showhidden -boolean yes
 | 
			
		||||
    killall Dock
 | 
			
		||||
 | 
			
		||||
    darwin_configure_screenshots_directory
 | 
			
		||||
 | 
			
		||||
    # See https://techstuffer.com/this-app-is-damaged-error-macos-sierra/
 | 
			
		||||
    shell-log "Disabling overly restrictive Gatekeeper"
 | 
			
		||||
    sudo spctl --master-disable
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
darwin_init_once "$@"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue