mirror of
				https://github.com/AquaMorph/dotfiles.git
				synced 2025-11-03 17:03:18 +00:00 
			
		
		
		
	Config file generation
This commit is contained in:
		@@ -1,5 +1,8 @@
 | 
				
			|||||||
#! /bin/bash
 | 
					#! /bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Load user settings from config file.
 | 
				
			||||||
 | 
					. ~/.config/settings.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dotdir=~/dotfiles
 | 
					dotdir=~/dotfiles
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#      src                                dest                   sudo
 | 
					#      src                                dest                   sudo
 | 
				
			||||||
@@ -89,6 +92,21 @@ function update {
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Set up settings config file
 | 
				
			||||||
 | 
					function setup {
 | 
				
			||||||
 | 
					    if [ -e $dotdir/settings.conf ]; then 
 | 
				
			||||||
 | 
						echo Settings file already created
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
						echo Setting up settings config...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						# Computer shortname
 | 
				
			||||||
 | 
						echo What is the computer shortname?
 | 
				
			||||||
 | 
						read computer
 | 
				
			||||||
 | 
						echo computer=$computer >> $dotdir/settings.conf
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					setup
 | 
				
			||||||
update
 | 
					update
 | 
				
			||||||
dotfiles
 | 
					dotfiles
 | 
				
			||||||
emacs
 | 
					emacs
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user