My younger self didn't know that creating repos to house your configuration was a known pattern! Hence the unweildy name, pc_settings. This change was a long time coming.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			436 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			436 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env zsh
 | |
| 
 | |
| SCRIPT_DIR="${HOME}/dotfiles/emacs"
 | |
| EMACS_FUNC_DIR="${HOME}/.emacs.d"
 | |
| 
 | |
| for source in $(find $SCRIPT_DIR -type f -name '*.el'); do
 | |
|   filename=$(basename $source)
 | |
|   target="${EMACS_FUNC_DIR}/${filename}"
 | |
| 
 | |
|   if [ ! -L $target ]; then
 | |
|     echo -n "Creating symlink for ${filename} ... " && \
 | |
|     ln -s $source $EMACS_FUNC_DIR && \
 | |
|     echo "Done."
 | |
|   else
 | |
|     echo "${filename} is already properly symlinked."
 | |
|   fi
 | |
| 
 | |
| done
 |