diff --git a/antigen.zsh b/antigen.zsh index a37b3db..cd208cd 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -292,12 +292,14 @@ antigen-revert () { } +# Update (with `git pull`) antigen itself. +# TODO: Once update is finished, show a summary of the new commits, as a kind of +# "what's new" message. antigen-selfupdate () { - ( - cd $_ANTIGEN_INSTALL_DIR - # Sanity checks - if [ ! -d .git ]; then - echo "antigen is not under git CVS" + ( cd $_ANTIGEN_INSTALL_DIR + if [[ ! -d .git ]]; then + echo "Your copy of antigen doesn't appear to be a git clone. " \ + "The 'selfupdate' command cannot work in this case." return 1 fi git pull