Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Unable to change theme in .zshrc file #1405

Open
adeleke5140 opened this issue Apr 8, 2020 · 1 comment
Open

Unable to change theme in .zshrc file #1405

adeleke5140 opened this issue Apr 8, 2020 · 1 comment

Comments

@adeleke5140
Copy link

I installed powerlevel using the vanilla method for ZSH instead of the one recommended for oh-my-zsh. I used the following commands:

$ git clone https://github.com/bhilburn/powerlevel9k.git ~/powerlevel9k $ echo 'source ~/powerlevel9k/powerlevel9k.zsh-theme' >> ~/.zshrc

and when i checked my .zshrc file in my home directory, the theme is still set to robbyrussel but the theme showing up in the terminal is powerlevel. How exactly do i fix this?

@Thutm
Copy link

Thutm commented Apr 22, 2020

If i'm following you correctly, it appears that you cloned a copy of the repository to the root of your home directory and then instructed zsh to source the theme file when zsh is launched (via the .zshrc file. I assume it put it at the end of your .zshrc file so it would technically work but I don't know if that's following the convention that oh-my-zsh follows.

You could set 'ZSH_THEME="powerlevel9k/powerlevel9k' in your .zshrc (which is what I do) to tell zsh that's the theme you want but all that is really doing is telling zsh to go source that same .zsh-theme file. Effectively your doing the same thing.

If you want to line up the configurations like the documentation specifies then I would add the ZSH_THEME variable into your ~/.zshrc file (Or I suppose update the part that says robbyrussel to powerlevel9k) and then delete the line that has 'source ~/powerlevel9k/powerlevel9k.zsh-theme'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants