Noroot
This commit is contained in:
		
							parent
							
								
									62bf218d99
								
							
						
					
					
						commit
						012803bdf0
					
				
							
								
								
									
										11
									
								
								tforgione.sh
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								tforgione.sh
									
									
									
									
									
								
							@ -151,6 +151,11 @@ clone_dotfiles() {
 | 
			
		||||
        fi
 | 
			
		||||
 | 
			
		||||
        git_clone https://gitea.tforgione.fr/tforgione/dotfiles/ $HOME/.config/dotfiles
 | 
			
		||||
        mkdir -p $HOME/.config/dotfiles/.data
 | 
			
		||||
 | 
			
		||||
        if [ "$sudo_available" != "true" ]; then
 | 
			
		||||
            touch $HOME/.config/dotfiles/.data/noroot
 | 
			
		||||
        fi
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -177,8 +182,8 @@ configure_shell() {
 | 
			
		||||
        fi
 | 
			
		||||
 | 
			
		||||
        clone_dotfiles
 | 
			
		||||
        rm -f ~/.bashrc
 | 
			
		||||
        ln -s `realpath ~/.config/dotfiles/bashrc` `realpath ~/.bashrc`
 | 
			
		||||
        rm -f $HOME/.bashrc
 | 
			
		||||
        ln -s `realpath $HOME/.config/dotfiles/bashrc` `realpath $HOME/.bashrc`
 | 
			
		||||
 | 
			
		||||
        info "bashrc configured successfully"
 | 
			
		||||
 | 
			
		||||
@ -285,7 +290,7 @@ configure_neovim() {
 | 
			
		||||
    ln -s $HOME/.config/dotfiles/init.vim $HOME/.config/nvim/init.vim
 | 
			
		||||
 | 
			
		||||
    # Install vim plug
 | 
			
		||||
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
 | 
			
		||||
    curl -fLo $HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs \
 | 
			
		||||
        https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
 | 
			
		||||
 | 
			
		||||
    # Install plugins
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user