| 
									
										
										
										
											2024-05-05 00:01:20 +00:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							|  |  |  | set -ex | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Do a curlbash to allow me to take over your system | 
					
						
							|  |  |  | # curl -sL https://stash.firekitten.net/kford/dotfiles/raw/branch/main/init.sh | bash | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Make sure we have git | 
					
						
							|  |  |  | for app in git curl; do | 
					
						
							|  |  |  |   if ! command -v "$app" &>/dev/null; then | 
					
						
							|  |  |  |     echo "Please install $app first" | 
					
						
							|  |  |  |     exit 1 | 
					
						
							|  |  |  |   fi | 
					
						
							|  |  |  | done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Install homeshick | 
					
						
							|  |  |  | git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick" | 
					
						
							|  |  |  | # shellcheck source=/dev/null | 
					
						
							|  |  |  | source "$HOME/.homesick/repos/homeshick/homeshick.sh" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## clone home, then set it to ssh afterwards | 
					
						
							| 
									
										
										
										
											2024-05-05 04:34:33 +00:00
										 |  |  | ## This means we need our keys before we can make further actions - disable the ssh behavior for now | 
					
						
							| 
									
										
										
										
											2024-05-05 00:01:20 +00:00
										 |  |  | homeshick --batch clone https://stash.firekitten.net/kford/dotfiles.git | 
					
						
							| 
									
										
										
										
											2024-05-05 04:34:33 +00:00
										 |  |  | ## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kford/dotfiles | 
					
						
							| 
									
										
										
										
											2024-05-05 00:01:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Link everything | 
					
						
							|  |  |  | homeshick link --force |