Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/antigen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ if [[ $ANTIGEN_CACHE != false ]]; then
return 0
fi
fi
[[ -z "$_ANTIGEN_INSTALL_FILENAME" ]] && _ANTIGEN_INSTALL_FILENAME=$(basename $0 2> /dev/null)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be $(basename -- $0)

[[ -z "$_ANTIGEN_INSTALL_DIR" ]] && _ANTIGEN_INSTALL_DIR=${0:A:h}

# Each line in this string has the following entries separated by a space
Expand Down Expand Up @@ -1830,7 +1831,7 @@ cat > $ANTIGEN_CACHE <<EOC
$(functions -- _antigen)
antigen () {
local MATCH MBEGIN MEND
[[ "\$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "\$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]] && source "$_ANTIGEN_INSTALL_DIR/antigen.zsh" && eval antigen \$@;
[[ "\$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "\$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]] && source "$_ANTIGEN_INSTALL_DIR/$_ANTIGEN_INSTALL_FILENAME" && eval antigen \$@;
return 0;
}
typeset -gaU fpath path
Expand Down
1 change: 1 addition & 0 deletions src/antigen.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[[ -z "$_ANTIGEN_INSTALL_FILENAME" ]] && _ANTIGEN_INSTALL_FILENAME=$(basename $0 2> /dev/null)
[[ -z "$_ANTIGEN_INSTALL_DIR" ]] && _ANTIGEN_INSTALL_DIR=${0:A:h}

# Each line in this string has the following entries separated by a space
Expand Down
2 changes: 1 addition & 1 deletion src/ext/cache.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cat > $ANTIGEN_CACHE <<EOC
$(functions -- _antigen)
antigen () {
local MATCH MBEGIN MEND
[[ "\$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "\$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]] && source "$_ANTIGEN_INSTALL_DIR/antigen.zsh" && eval antigen \$@;
[[ "\$ZSH_EVAL_CONTEXT" =~ "toplevel:*" || "\$ZSH_EVAL_CONTEXT" =~ "cmdarg:*" ]] && source "$_ANTIGEN_INSTALL_DIR/$_ANTIGEN_INSTALL_FILENAME" && eval antigen \$@;
return 0;
}
typeset -gaU fpath path
Expand Down