===================================================================== --- New Scripts -------------------------- - i3 window manager scrypts (see --help for more info) - zsh/i3/create-local-font-override - zsh/i3/launch-or-show --- New Features ------------------------- Now support `__select` syntax in environment files! (see zsh/scwrypts/README.md for more detail) --- Changes ------------------------------ - moved some rogue configuration files under the scwrypts config - ~/.vim/bundle/build.zsh >> ~/.config/scwrypts/vundle.zsh - ~/.config/scwrypts/config.dotfile.zsh >> ~/.config/scwrypts/dotfiles.zsh - __FZF, __FZF_TAIL, and __FZF_HEAD now create prompt+response logs --- Bug Fixes ---------------------------- - zsh/config/symlinks - don't fail when trying to symlink a directory - no longer fails when trying to replace a broken symlink - scwrypts now detects environments which are symlinked - USAGE syntax now correctly shows the position of the '--' argument delimiter support __select in env files; ignore __lower_case suffix in env files; put blank line before comments in env files added i3 scripts
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| _DEPENDENCIES+=()
 | |
| _REQUIRED_ENV+=()
 | |
| source ${0:a:h}/../common.zsh
 | |
| #####################################################################
 | |
| 
 | |
| VUNDLE_PLUGIN_DIR="$HOME/.vim/bundle"
 | |
| VUNDLE_BUILD_DEFINITIONS="$SCWRYPTS_CONFIG_PATH/vundle.zsh"
 | |
| 
 | |
| [ ! -f $VUNDLE_BUILD_DEFINITIONS ] && {
 | |
| 	{
 | |
| 		echo -e "#\n# Scwrypts Build Definitions\n#\n"
 | |
| 	} > $VUNDLE_BUILD_DEFINITIONS
 | |
| }
 | |
| 
 | |
| VUNDLE_PLUGIN_LIST=$(ls $VUNDLE_PLUGIN_DIR | grep -v 'Vundle.vim' | grep -v 'build.zsh')
 | |
| source $VUNDLE_BUILD_DEFINITIONS
 | |
| for PLUGIN in $(echo $VUNDLE_PLUGIN_LIST)
 | |
| do
 | |
| 	typeset -f VUNDLE_BUILD__$PLUGIN >/dev/null 2>/dev/null || {
 | |
| 		echo -e "\nVUNDLE_BUILD__$PLUGIN() {\n	# ... build steps from $HOME/.vim/$PLUGIN \n}" \
 | |
| 			>> $VUNDLE_BUILD_DEFINITIONS
 | |
| 		VUNDLE_BUILD__$PLUGIN() {}
 | |
| 	}
 | |
| done
 | |
| 
 | |
| #####################################################################
 | |
| 
 | |
| VUNDLE_PLUGIN_INSTALL() {
 | |
| 	_VIM +PluginInstall +qall \
 | |
| 		&& __SUCCESS 'successfully installed Vundle.vim plugins' \
 | |
| 		|| __FAIL 1 'failed to install Vundle.vim plugins'
 | |
| }
 | |
| 
 | |
| VUNDLE_REBUILD_PLUGINS() {
 | |
| 	local ERRORS=0
 | |
| 
 | |
| 	local PLUGIN
 | |
| 	for PLUGIN in $(echo $VUNDLE_PLUGIN_LIST)
 | |
| 	do
 | |
| 		cd "$VUNDLE_PLUGIN_DIR/$PLUGIN"
 | |
| 		__STATUS "building '$PLUGIN'"
 | |
| 		VUNDLE_BUILD__$PLUGIN \
 | |
| 			&& __SUCCESS "finished building '$PLUGIN'" \
 | |
| 			|| __ERROR "failed to build '$PLUGIN' (see above)" \
 | |
| 			;
 | |
| 	done
 | |
| 
 | |
| 	return $ERRORS
 | |
| }
 |