Auto weekly update
This commit is contained in:
		
							parent
							
								
									012803bdf0
								
							
						
					
					
						commit
						23af299538
					
				@ -151,6 +151,10 @@ clone_dotfiles() {
 | 
			
		||||
        fi
 | 
			
		||||
 | 
			
		||||
        git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles
 | 
			
		||||
 | 
			
		||||
        echo "# Checks that the update is done weekly, if its not done, prints a nice message" > $HOME/.config/dotfiles/zsh/extraconfig.zsh
 | 
			
		||||
        echo "export UPDATE_CHECK=weekly" >> $HOME/.config/dotfiles/zsh/extraconfig.zsh
 | 
			
		||||
 | 
			
		||||
        mkdir -p $HOME/.config/dotfiles/.data
 | 
			
		||||
 | 
			
		||||
        if [ "$sudo_available" != "true" ]; then
 | 
			
		||||
@ -185,6 +189,10 @@ configure_shell() {
 | 
			
		||||
        rm -f $HOME/.bashrc
 | 
			
		||||
        ln -s `realpath $HOME/.config/dotfiles/bashrc` `realpath $HOME/.bashrc`
 | 
			
		||||
 | 
			
		||||
        mkdir -p $HOME/.config/dotfiles/bash
 | 
			
		||||
        echo "# Checks that the update is done weekly, if its not done, prints a nice message" > $HOME/.config/dotfiles/bash/extraconfig.bash
 | 
			
		||||
        echo "export UPDATE_CHECK=weekly" >> $HOME/.config/dotfiles/bash/extraconfig.bash
 | 
			
		||||
 | 
			
		||||
        info "bashrc configured successfully"
 | 
			
		||||
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user