v2.5.0
===================================================================== --- New Scripts -------------------------- zsh ) vundle-vim helpers - vim/vundle/edit-build-actions - vim/vundle/install - vim/vundle/rebuild quick install-from-source scripts - git/package/install - git/package/build (install --only-build) - git/package/download (install --only-pull) - git/package/update (install --update) config sym-linker (for source-controlled .configs) - config/update (symlinks + terminfo) - config/symlinks (set all symlinks from settings) - config/settings (edit settings which aren't scwrypts env variables) - config/terminfo (load all terminfo from settings) --- Changes ------------------------------ - helper comments are now inserted in all env files - removed underscore prefix for standard AWS environment variables - added "opening" and "finished editing" comments to __EDIT util - added __USAGE to format $USAGE variable to std:err - added __ERROR_CHECK to exit if any __ERROR(s) were called
This commit is contained in:
49
zsh/vim/vundle/common.zsh
Normal file
49
zsh/vim/vundle/common.zsh
Normal file
@ -0,0 +1,49 @@
|
||||
_DEPENDENCIES+=()
|
||||
_REQUIRED_ENV+=()
|
||||
source ${0:a:h}/../common.zsh
|
||||
#####################################################################
|
||||
|
||||
VUNDLE_PLUGIN_DIR="$HOME/.vim/bundle"
|
||||
VUNDLE_BUILD_DEFINITIONS="$VUNDLE_PLUGIN_DIR/build.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
|
||||
}
|
6
zsh/vim/vundle/edit-build-actions
Executable file
6
zsh/vim/vundle/edit-build-actions
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/zsh
|
||||
_DEPENDENCIES+=()
|
||||
_REQUIRED_ENV+=()
|
||||
source ${0:a:h}/common.zsh
|
||||
#####################################################################
|
||||
__EDIT "$VUNDLE_BUILD_DEFINITIONS"
|
13
zsh/vim/vundle/install
Executable file
13
zsh/vim/vundle/install
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/zsh
|
||||
_DEPENDENCIES+=()
|
||||
_REQUIRED_ENV+=()
|
||||
source ${0:a:h}/common.zsh
|
||||
#####################################################################
|
||||
|
||||
PLUGIN_INSTALL() {
|
||||
VUNDLE_PLUGIN_INSTALL || return 1
|
||||
VUNDLE_REBUILD_PLUGINS || return 2
|
||||
}
|
||||
|
||||
#####################################################################
|
||||
PLUGIN_INSTALL $@
|
6
zsh/vim/vundle/rebuild
Executable file
6
zsh/vim/vundle/rebuild
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/zsh
|
||||
_DEPENDENCIES+=()
|
||||
_REQUIRED_ENV+=()
|
||||
source ${0:a:h}/common.zsh
|
||||
#####################################################################
|
||||
VUNDLE_REBUILD_PLUGINS $@
|
Reference in New Issue
Block a user