implement function to update dotfiles
This commit is contained in:
		
							parent
							
								
									010c9d5f1a
								
							
						
					
					
						commit
						69ee005bcc
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								shellrc
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								shellrc
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -19,6 +19,9 @@ unset local_bin
 | 
			
		|||
# ---> completion
 | 
			
		||||
comp_enabled=true
 | 
			
		||||
 | 
			
		||||
# ---> dotfiles dir
 | 
			
		||||
dotfiles="${HOME}/vdotfiles"
 | 
			
		||||
 | 
			
		||||
# ---> environment
 | 
			
		||||
export TIME_STYLE='long-iso'
 | 
			
		||||
export LC_ALL='en_US.UTF-8'
 | 
			
		||||
| 
						 | 
				
			
			@ -194,8 +197,12 @@ screenoffenable() {
 | 
			
		|||
	xset +dpms
 | 
			
		||||
	xset s on
 | 
			
		||||
}
 | 
			
		||||
dotfiles_update() {
 | 
			
		||||
	git --work-tree="${dotfiles}" --git-dir="${dotfiles}/.git" pull
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
# enable autoload feature for zsh
 | 
			
		||||
is_zsh && autoload screenoffdisable screenoffenable
 | 
			
		||||
is_zsh && autoload screenoffdisable screenoffenable dotfiles_update
 | 
			
		||||
 | 
			
		||||
# ---> other shell specific settings and sourcing of external files
 | 
			
		||||
if is_zsh; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue