antigen: Antigen theme command not working

After antigen bundles are loaded from the command line invoking:

antigen theme <theme>

Does not update the prompt as expected.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

I also have the same issue described by @jdkbx, but the workaround with disabling antigen’s cache does not solve the issue. For me this issue happened after commit: bca02d7a0b8f86fa01849f833b837c262763a881. Everything works of the themes, except the prompt will not be change.

Example (using https://github.com/sindresorhus/pure)

Expected (commit 126bb5bf45869b758180c703f1c7687ad14da839 and earlier)

~/Programming
❯ pwd
/Users/username/Programming

Actual (commit bca02d7a0b8f86fa01849f833b837c262763a881 and later)

~/Programming
username@host:~/Programming% pwd
/Users/username/Programming

Setup

macOS 10.12 zsh 5.2.0 antigen v1.1.3

Config

# Antigen
source ~/.antigen/antigen/antigen.zsh

antigen use oh-my-zsh

antigen bundle aws
antigen bundle brew
antigen bundle common-aliases
antigen bundle docker
antigen bundle git
antigen bundle gradle
antigen bundle osx
antigen bundle ssh-agent
antigen bundle thefuck
antigen bundle tmux

antigen bundle unixorn/autoupdate-antigen.zshplugin
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle zsh-users/zsh-syntax-highlighting

antigen bundle mafredri/zsh-async
antigen bundle sindresorhus/pure

antigen-apply

Test config 1

# Antigen
source ~/.antigen/antigen/antigen.zsh

antigen bundle mafredri/zsh-async
antigen bundle sindresorhus/pure

antigen-apply

Test config 2

# Antigen
source ~/.antigen/antigen/antigen.zsh

antigen use oh-my-zsh

antigen bundle mafredri/zsh-async
antigen bundle sindresorhus/pure

antigen-apply