Open tysun opened 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
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.
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
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
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.
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 thecustom
folder?When I
source ~/.zshrc
Terminal/zsh console returns these errors. So somewhere it's loading them again.I noticed that I have two instances of zsh located in
/usr/local/bin
. Both azsh
and azsh-5.5
. Seems to be a system default version and Homebrew version. When I dozsh --version
it says 1.22.1 which is very old. When I dobrew info zsh
it sayszsh: stable 5.5 (bottled)
.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
============================================