mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 04:58:41 +00:00 
			
		
		
		
	Let setup work on Ubuntu as well
This commit is contained in:
		
							parent
							
								
									ecfed038ac
								
							
						
					
					
						commit
						fd3b25492a
					
				
							
								
								
									
										17
									
								
								setup
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								setup
									
									
									
									
									
								
							| 
						 | 
					@ -2,12 +2,22 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "Setting up the stuff..."
 | 
					echo "Setting up the stuff..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "Updating arch"
 | 
					if [[ "$(uname -a)" == *"Ubuntu"*  ]]
 | 
				
			||||||
sudo pacman -Syyu
 | 
					then
 | 
				
			||||||
sudo pacman -S ripgrep fd neovim make stow tmux
 | 
					    echo "Updating Ubuntu"
 | 
				
			||||||
 | 
					    sudo apt update && sudo apt upgrade
 | 
				
			||||||
 | 
					    echo "Installing tools/utils"
 | 
				
			||||||
 | 
					    sudo apt install ripgrep fd-find make stow tmux    
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					    echo "Updating Arch"
 | 
				
			||||||
 | 
					    sudo pacman -Syyu
 | 
				
			||||||
 | 
					    echo "Installing tools/utils"
 | 
				
			||||||
 | 
					    sudo pacman -S ripgrep fd neovim make stow tmux
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# tmux plugin manager and theme
 | 
					# tmux plugin manager and theme
 | 
				
			||||||
 | 
					echo "Installing tmux plugin manager... Don't forget to press <C-a><S-i> in a new tmux session later"
 | 
				
			||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
 | 
					git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_to_file() {
 | 
					add_to_file() {
 | 
				
			||||||
| 
						 | 
					@ -22,5 +32,6 @@ add_to_file() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
 | 
					nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Add aliases to zshrc
 | 
				
			||||||
add_to_file "alias nv='nvim'" "$HOME/.zshrc"
 | 
					add_to_file "alias nv='nvim'" "$HOME/.zshrc"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue