-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Question] programs.zsh.promptInit required for powerlevel10k ? #1338
Comments
Would |
Here's a pretty bare-bones version of my config that works { config, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableAutosuggestions = true;
dotDir = ".config/zsh"; # Already prepends $HOME
initExtraBeforeCompInit = ''
# p10k instant prompt
local P10K_INSTANT_PROMPT="${config.xdg.cacheHome}/p10k-instant-prompt-''${(%):-%n}.zsh"
[[ ! -r "$P10K_INSTANT_PROMPT" ]] || source "$P10K_INSTANT_PROMPT"
'';
plugins = with pkgs; [
{
file = "powerlevel10k.zsh-theme";
name = "powerlevel10k";
src = "${zsh-powerlevel10k}/share/zsh-powerlevel10k";
}
{
file = "p10k.zsh";
name = "powerlevel10k-config";
src = ../config/zsh/p10k; # Some directory containing your p10k.zsh file
}
];
initExtra = ''
# blah blah
'';
};
} Whenever I want to run I'm considering making a home-manager module for configuring p10k similar to the emacs init.d module @rycee has in a GitLab repo but it's a pretty big undertaking, lots of settings. |
Appending the following line alone seems to work in my case (after declaring
|
Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesIf you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
Issue description
I am trying to install powerlevel10k with the home-manager. But this snippet does not seem to work:
The error I have:
Meta
zsh module
Maintainer CC
@carlostome
@rycee @uvNikita
Technical details
The nixpkgs derivation suggests to use
programs.zsh.promptInit
but it does not seems to be exposed in the zsh module of the home-manager.I haven't found much help on the web:
https://www.reddit.com/r/NixOS/comments/fenb4u/zsh_with_ohmyzsh_with_powerlevel10k_in_nix/
Thanks for your help.
The text was updated successfully, but these errors were encountered: