Added zsh plugins.

This commit is contained in:
vorboyvo 2024-12-02 17:22:01 -05:00
parent ce88390b44
commit ed5e4ab64b

View file

@ -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=";
};
}
];
};
}