tweaks, antigen.zsh server version

This commit is contained in:
2023-03-19 02:59:04 +02:00
parent 761671e7f7
commit dbe5ea3ce0
2 changed files with 40 additions and 39 deletions

View File

@@ -41,6 +41,7 @@ export NVM_COMPLETION=true
export NVM_AUTO_USE=true export NVM_AUTO_USE=true
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# If we have go packages, include them to the PATH # If we have go packages, include them to the PATH
if command -v go &> /dev/null; then if command -v go &> /dev/null; then

View File

@@ -24,7 +24,7 @@ if [[ $ANTIGEN_CACHE != false ]]; then
for config in $ANTIGEN_CHECK_FILES; do for config in $ANTIGEN_CHECK_FILES; do
if [[ "$config" -nt "$config.zwc" ]]; then if [[ "$config" -nt "$config.zwc" ]]; then
# Flag configuration file as newer # Flag configuration file as newer
{ zcompile "$config"; } &! { zcompile "$config" } &!
# Kill cache file in order to force full loading (see a few lines below) # Kill cache file in order to force full loading (see a few lines below)
[[ -f "$ANTIGEN_CACHE" ]] && rm -f "$ANTIGEN_CACHE" [[ -f "$ANTIGEN_CACHE" ]] && rm -f "$ANTIGEN_CACHE"
fi fi