diff options
| author | schererleander <leander@schererleander.de> | 2025-05-10 18:52:13 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-05-10 18:52:13 +0200 |
| commit | b66ea884dfa44f9a126cd491c8cb7e91253ea104 (patch) | |
| tree | 06348ef9b186978ba60ae98aaea3d244d64f638d /modules/zsh.nix | |
| parent | d58f4cb9b4ffcd85f6fe73c22b6c3a57c401f2b0 (diff) | |
change terminal stuff
Diffstat (limited to 'modules/zsh.nix')
| -rw-r--r-- | modules/zsh.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/zsh.nix b/modules/zsh.nix index 9389d51..3aca8a7 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -6,6 +6,10 @@ in { options.zsh.enable = lib.mkEnableOption "Configure zsh"; config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + zoxide + ]; + programs.zsh = { enable = true; enableCompletion = true; @@ -18,14 +22,24 @@ in { zstyle ':completion:*' special-dirs true zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*' add-space false + + # Case-insensitive completion + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' + + # vim keybdings + bindkey -v + eval "$(zoxide init zsh)" ''; + shellAliases = { + ls = "ls --color=auto"; + }; + zplug = { enable = true; plugins = [ { name = "mafredri/zsh-async"; } - { name = "zpm-zsh/colorize"; } { name = "sindresorhus/pure"; tags = [ "as:theme" "use:pure.zsh" ]; } { name = "zdharma-continuum/fast-syntax-highlighting"; } { name = "zsh-users/zsh-autosuggestions"; } |
