Updates symlinking script for custom emacs funcs
This commit is contained in:
		
							parent
							
								
									296fe1b8f6
								
							
						
					
					
						commit
						abb61dade2
					
				
					 1 changed files with 16 additions and 1 deletions
				
			
		|  | @ -1,3 +1,18 @@ | |||
| #!/usr/bin/env zsh | ||||
| 
 | ||||
| ln -s ~/pc_settings/emacs/*.el ~/.emacs.d/ | ||||
| SCRIPT_DIR="$HOME/pc_settings/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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue