-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoload theme doesn't work #43
Comments
Hey @zfben.
|
@grigorii-horos I tried to run I want to set powerlevel10k as zsh's default theme. |
I think you should load this theme in sync mode Add this into your
|
@grigorii-horos I tied it, but it now works :( The .zshrc content is: # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
if [[ ! -f ~/.zpm/zpm.zsh ]]; then
git clone --recursive https://github.com/zpm-zsh/zpm ~/.zpm
fi
source ~/.zpm/zpm.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
zpm load romkatv/powerlevel10k Is it something wrong? |
Hey @zfben . I found a bug in |
It dosen't work. My steps are:
Now my .zshrc is: # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
# fi
if [[ ! -f ~/.zpm/zpm.zsh ]]; then
git clone --recursive https://github.com/zpm-zsh/zpm ~/.zpm
fi
source ~/.zpm/zpm.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
zpm load zpm-zsh/powerlevel10k |
@zfben What error do you have? I tried your zshrc and it's works |
@grigorii-horos i forgot to run zpm clean. it works now, thank you. |
@grigorii-horos by the way, could you create a pull request to powerlevel10k? then I can use the official powerlevel10k source. |
Hey @zfben I tried, but author doesn't want to accept pr You can add a comment here, I think |
Hmm, I don't good at zsh, I guess the author thinks the source changes maybe make it more complex or bugs. |
Hey @zfben . I did another fix for this issue. Now zpm update |
When i ran Then I goto ~/.zpm and git pull directly. After I run Now the .zshrc is: if [[ ! -f ~/.zpm/zpm.zsh ]]; then
git clone --recursive https://github.com/zpm-zsh/zpm ~/.zpm
fi
source ~/.zpm/zpm.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
zpm load romkatv/powerlevel10k
#source ~/powerlevel10k/powerlevel10k.zsh-theme
zpm load zfben/zsh-npm |
@zfben Sorry... Use |
After i run |
@grigorii-horos |
so basically this issue still exists. Are there any plans to fix that? the recent state is: deleting this folder fixes the issue until next update/clean/ (so it seems) EDIT: no it breaks even on a new shell => this thema can not be loaded bei zpm :-( |
Describe the bug
I want to load a theme when opening a new terminal, is
autoload
do that?To Reproduce
I have tried
zpm load romkatv/powerlevel10k,autoload
andzpm load @theme/romkatv/powerlevel10k,autoload
They just work in the current shell.
Expected behavior
Autoload without inputting commands.
Additional context
The text was updated successfully, but these errors were encountered: