From ed5e4ab64b16cba96d91bb82aaff215497a8dc03 Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Mon, 2 Dec 2024 17:22:01 -0500 Subject: [PATCH] Added zsh plugins. --- snippets/zsh.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/snippets/zsh.nix b/snippets/zsh.nix index e6feee3..77ba294 100644 --- a/snippets/zsh.nix +++ b/snippets/zsh.nix @@ -1,11 +1,11 @@ -{ +{ pkgs, ... }: { # Enabling bash from home-manager means environment variables set by HM get set correctly # Worst case, fallback to bash. programs.zsh = { enable = true; initExtra = '' # Set prompt - PS1='%(?..[%?] )%B%F{green}[%n@%m %~]%(!.#.$)%f%b ' + # PS1='%(?..[%?] )%B%F{green}[%n@%m %~]%(!.#.$)%f%b ' ''; profileExtra = '' export QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor @@ -13,5 +13,25 @@ # [ "$(tty)" = "/dev/tty1" ] && exec sway ''; defaultKeymap = "emacs"; + plugins = [ + { + name = "pure"; + src = pkgs.fetchFromGitHub { + owner = "sindresorhus"; + repo = "pure"; + rev = "v1.23.0"; + hash = "sha256-BmQO4xqd/3QnpLUitD2obVxL0UulpboT8jGNEh4ri8k="; + }; + } + { + name = "zsh-syntax-highlighting"; + src = pkgs.fetchFromGitHub { + owner = "zsh-users"; + repo = "zsh-syntax-highlighting"; + rev = "0.8.0"; + hash = "sha256-iJdWopZwHpSyYl5/FQXEW7gl/SrKaYDEtTH9cGP7iPo="; + }; + } + ]; }; }