diff --git a/home-manager/roles/zsh/default.nix b/home-manager/roles/zsh/default.nix index ab0a1083..b729e47c 100644 --- a/home-manager/roles/zsh/default.nix +++ b/home-manager/roles/zsh/default.nix @@ -16,5 +16,25 @@ enable = true; plugins = [ "colored-man-pages" ]; }; + plugins = [ + { + name = "auto-notify"; + src = pkgs.fetchFromGitHub { + owner = "MichaelAquilina"; + repo = "zsh-auto-notify"; + rev = "0.8.0"; + sha256 = "02x7q0ncbj1bn031ha7k3n2q2vrbv1wbvpx9w2qxv9jagqnjm3bd"; + }; + } + { + name = "you-should-use"; + src = "${pkgs.zsh-you-should-use}/share/zsh/plugins/you-should-use"; + } + { + name = "zsh-nix-shell"; + file = "nix-shell.plugin.zsh"; + src = "${pkgs.zsh-nix-shell}/share/zsh-nix-shell"; + } + ]; }; } diff --git a/home-manager/roles/zsh/p10k.zsh b/home-manager/roles/zsh/p10k.zsh index 2c0eba9b..a51a659e 100644 --- a/home-manager/roles/zsh/p10k.zsh +++ b/home-manager/roles/zsh/p10k.zsh @@ -36,6 +36,7 @@ # The list of segments shown on the left. Fill it with the most important segments. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( + nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) context # os identifier dir # current directory vcs # git status @@ -85,7 +86,6 @@ nnn # nnn shell (https://github.com/jarun/nnn) vim_shell # vim shell indicator (:sh) midnight_commander # midnight commander shell (https://midnight-commander.org/) - nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) vi_mode # vi mode (you don't need this if you've enabled prompt_char) # vpn_ip # virtual private network indicator # load # CPU load