This commit is contained in:
Sakooooo 2023-07-15 21:51:53 +03:00
parent dbccd5e097
commit f2eaebcfd6
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 215 additions and 284 deletions

View file

File diff suppressed because it is too large Load diff

9
config/zsh/zshrc.zsh Normal file
View file

@ -0,0 +1,9 @@
# 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
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

View file

@ -14,11 +14,23 @@ in
programs.zsh = {
enable = true;
enableCompletion = true;
promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
# promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
};
home-manager.users.sako = { pkgs, ...}: {
home.file = {
".zshrc" = {
enable = true;
source = ../../../config/zsh/zshrc.zsh;
};
".p10k.zsh" = {
enable = true;
source = ../../../config/zsh/p10k.zsh;
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
plugins = [
{
name = "zsh-nix-shell";