zsh-users / antigen

The plugin manager for zsh.
http://antigen.sharats.me
MIT License
8k stars 279 forks source link

antigen themes not opening from the "custom" folder. #658

Open tysun opened 6 years ago

tysun commented 6 years ago

I have some issues between antigen and zsh and have also posted this same question in the oh my zsh repo since I don't know which one is causing what issues. Thanks.

  1. In order for my spaceship theme to load I need to put it in .antigen -> themes. That's fine but there is also an .antigen -> custom -> themes folder. For me that doesn't work. I have to copy my custom theme into .antigen -> themes. Is there a reason why it doesn't load from the custom folder?

  2. When I source ~/.zshrc Terminal/zsh console returns these errors. So somewhere it's loading them again.

Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems robbyrussell/oh-my-zsh is already installed! Seems zsh-users/zsh-syntax-highlighting is already installed! Seems zsh-users/zsh-history-substring-search is already installed! Seems zsh-users/zsh-autosuggestions is already installed! Seems seebi/dircolors-solarized is already installed! Seems robbyrussell/oh-my-zsh is already installed!

I noticed that I have two instances of zsh located in /usr/local/bin. Both a zsh and a zsh-5.5. Seems to be a system default version and Homebrew version. When I do zsh --version it says 1.22.1 which is very old. When I do brew info zsh it says zsh: stable 5.5 (bottled).

  1. When I open a new Terminal window it is using the default bash and not defaulting to antigen/zsh. Do the Terminal preference settings matter? i.e. Shells open with: Default login shell or Command (complete path /bin/zsh)

==============================================

.zshrc

PATH

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Anaconda

export PATH="$HOME/anaconda3/bin:$PATH"

Homebrew

export PATH=/usr/local/bin:$PATH

Java

export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"

To activate zsh completions from Homebrew installation

fpath=(/usr/local/share/zsh-completions $fpath)

Activate Antigen

source /usr/local/share/antigen/antigen.zsh

Load oh-my-zsh's library.

antigen use oh-my-zsh

Bundles from default repo

antigen bundle pod antigen bundle pip antigen bundle git antigen bundle brew antigen bundle git-extras antigen bundle jsontools antigen bundle last-working-dir antigen bundle mysql-macports antigen bundle npm antigen bundle pyenv antigen bundle python antigen bundle pylint antigen bundle sudo antigen bundle virtualenvwrapper antigen bundle virtualenv antigen bundle web-search antigen bundle heroku antigen bundle command-not-found

Other bundles

antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-history-substring-search antigen bundle zsh-users/zsh-autosuggestions antigen bundle seebi/dircolors-solarized

Load theme.

antigen theme spaceship

Antigen done.

antigen apply

============================================

screen shot 2018-04-14 at 11 49 56 am screen shot 2018-04-14 at 11 50 52 am
tysun commented 6 years ago

It seems to be fixed. I had to add these lines at the top of my .zshrc file. Does anyone know why? Because other users have not had to add these lines. Even when you look at the repo .md install example it doesn't have these lines.

# Path to oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
source $ZSH/oh-my-zsh.sh
fredguth commented 3 years ago

I have the same problem trying to apply a custom theme in $ZSH/custom/themes Tried copying the theme into $ZSH/themes and it also did not work.

fredguth commented 3 years ago

Oh.. it worked in the shell by installing via bundle antigen bundle aaronjamesyoung/aaron-zsh-theme

and then I can... antigen theme aaronjamesyoung/aaron-zsh-theme

but it didn't work in .zshrc

mrcsporto commented 2 years ago

Go to yout .zshrc file open with VScode,

Go to line 11 and choose yout theme ZSH_THEME="candy" Go to line 75 and change to #

Go to line 102 and put this:

source ~/.antigen/antigen.zsh

antigen use oh-my-zsh

antigen bundle lukechilds/zsh-nvm antigen bundle git antigen bundle heroku antigen bundle pip antigen bundle lein antigen bundle command-not-found

antigen bundle zsh-users/zsh-syntax-highlighting

antigen theme candy

antigen apply