yage
6333a2f6b8
===================================================================== --- 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
38 lines
1.2 KiB
Bash
Executable File
38 lines
1.2 KiB
Bash
Executable File
#!/bin/zsh
|
|
_DEPENDENCIES+=()
|
|
_REQUIRED_ENV+=()
|
|
source ${0:a:h}/common.zsh
|
|
#####################################################################
|
|
|
|
[ ! -f $SCWRYPTS_CONFIG_PATH/config ] && {
|
|
__STATUS 'first-time setup detected; creating local configuration override...'
|
|
touch $SCWRYPTS_CONFIG_PATH/config \
|
|
&& __SUCCESS 'created!' \
|
|
|| __FAIL 1 "unable to create config at '$SCWRYPTS_CONFIG_PATH/config'"
|
|
{
|
|
echo '#'
|
|
echo '# configuration for scwrypts'
|
|
echo '#'
|
|
sed -n '1d; /^###/q; p' $SCWRYPTS_ROOT/global/config.zsh | sed '$d'
|
|
} > $SCWRYPTS_CONFIG_PATH/config
|
|
|
|
__EDIT $SCWRYPTS_CONFIG_PATH/config
|
|
|
|
__STATUS 'attempting to build virtual environments'
|
|
__RUN_SCWRYPT zsh/scwrypts/virtualenv/update-all \
|
|
&& __SUCCESS 'finished updating virtualenvs' \
|
|
|| __WARNING 'unable to create one or more virtualenv (see above)' \
|
|
;
|
|
|
|
__REMINDER
|
|
__REMINDER 'use "zsh/scwrypts/virtualenv/update-all" to update environments'
|
|
__REMINDER '(equivalent to "npm install" or "pip install -r requirements.txt")'
|
|
__REMINDER
|
|
} || {
|
|
__EDIT $SCWRYPTS_CONFIG_PATH/config
|
|
}
|
|
|
|
|
|
__SUCCESS 'saved new configuration'
|
|
__REMINDER 'changes which affect the hot-key plugin will require a ZSHRC reload'
|