-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Only generate resources list on non-interactive mode * Should always use `antigen` wrapper * Default enable ANTIGE_AUTO_CONFIG * Update README.mkd
- Loading branch information
Showing
11 changed files
with
78 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v2.0.2 | ||
develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
# Updates _ANTIGEN_INTERACTIVE environment variable to reflect | ||
# if antigen is running in an interactive shell or from sourcing. | ||
# | ||
# This function check ZSH_EVAL_CONTEXT if available or functrace otherwise. | ||
# If _ANTIGEN_INTERACTIVE is set to true it won't re-check again. | ||
# This function check ZSH_EVAL_CONTEXT to determine if running in interactive shell. | ||
# | ||
# Usage | ||
# -antigen-interactive-mode | ||
# | ||
# Returns | ||
# Either true or false depending if we are running in interactive mode | ||
-antigen-interactive-mode () { | ||
# Check if we are in any way running in interactive mode | ||
if [[ $_ANTIGEN_INTERACTIVE == false ]]; then | ||
if [[ "$ZSH_EVAL_CONTEXT" =~ "toplevel:*" ]]; then | ||
_ANTIGEN_INTERACTIVE=true | ||
elif [[ -z "$ZSH_EVAL_CONTEXT" ]]; then | ||
zmodload zsh/parameter | ||
if [[ "${functrace[$#functrace]%:*}" == "zsh" ]]; then | ||
_ANTIGEN_INTERACTIVE=true | ||
fi | ||
fi | ||
fi | ||
|
||
return _ANTIGEN_INTERACTIVE | ||
return [[ "$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]]; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters