mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Fix misplaced config
This commit is contained in:
parent
1844988bf2
commit
2f4d4d1866
2 changed files with 24 additions and 22 deletions
|
|
@ -35,16 +35,6 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
initExtraFirst = ''
|
|
||||||
(( ''${+commands[direnv]} )) && emulate zsh -c "$(direnv export zsh)"
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
(( ''${+commands[direnv]} )) && emulate zsh -c "$(direnv hook zsh)"
|
|
||||||
'';
|
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-Z}'
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-Z}'
|
||||||
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
|
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
|
||||||
|
|
|
||||||
|
|
@ -6,17 +6,29 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.myConfig.shell.enable {
|
config = lib.mkIf config.myConfig.shell.enable {
|
||||||
programs.zsh.plugins = [
|
programs.zsh = {
|
||||||
{
|
plugins = [
|
||||||
name = "powerlevel10k";
|
{
|
||||||
src = pkgs.zsh-powerlevel10k;
|
name = "powerlevel10k";
|
||||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
src = pkgs.zsh-powerlevel10k;
|
||||||
}
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
{
|
}
|
||||||
name = "powerlevel10k-config";
|
{
|
||||||
src = ./.;
|
name = "powerlevel10k-config";
|
||||||
file = "p10k.zsh";
|
src = ./.;
|
||||||
}
|
file = "p10k.zsh";
|
||||||
];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
initExtraFirst = ''
|
||||||
|
(( ''${+commands[direnv]} )) && emulate zsh -c "$(direnv export zsh)"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
(( ''${+commands[direnv]} )) && emulate zsh -c "$(direnv hook zsh)"
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue