From b973827403789b14bbe2a70a9ce653079ca6b1ca Mon Sep 17 00:00:00 2001 From: mir Date: Tue, 28 May 2024 21:34:07 -0800 Subject: [PATCH] switch to zsh and get plugins --- modules/shell.nix | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/modules/shell.nix b/modules/shell.nix index cdb72f9..660f3a5 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -1,13 +1,35 @@ { config, lib, pkgs, ... }: { - programs.bash = { + # programs.bash = { + # enable = true; + # shellAliases = { + # ls = "eza"; + # tree = "eza -T"; + # }; + # initExtra = '' + # export EDITOR=emacs\ -nw + # ''; + # }; + programs.zsh = { enable = true; shellAliases = { ls = "eza"; tree = "eza -T"; }; - initExtra = '' - export EDITOR=emacs\ -nw + initExtraFirst = '' + export EDITOR=emacs\ -nw + source ~/.p10k.zsh ''; + enableCompletion = true; + # autosuggestions.enable = true; + zplug = { + enable = true; + plugins = [ + { name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation + { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; } # Installations with additional options. For the list of options, please refer to Zplug README. + { name = "zdharma-continuum/fast-syntax-highlighting"; } + ]; + }; + }; }