nix-config

My personal nixos and home-manager configuration
Log | Files | Refs | README

commit 03c8e3534b8a06aaa84b39b10146b434dd070247
parent 24cf737bff75647fe952372d0bb3279847c5f26f
Author: benjamin paul <bpaul@bpaul.xyz>
Date:   Sun,  4 Jul 2021 13:04:47 +1000

Switch to vi mode and improve startup time for zsh

Diffstat:
Mhome/modules/terminal/zsh.nix | 18++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/home/modules/terminal/zsh.nix b/home/modules/terminal/zsh.nix @@ -21,12 +21,26 @@ in programs.zsh = { enable = true; + defaultKeymap = "viins"; + + dotDir = ".config/zsh"; + + # Fix slow startup time on laptop + # https://gist.github.com/ctechols/ca1035271ad134841284 + completionInit = '' + autoload -Uz compinit + + for dump in ''${ZDOTDIR}/.zcompdump(N.mh+24); do + compinit + done + + compinit -C; + ''; + history = { path = "/home/benjamin/.cache/zsh/history"; }; - # bind keys properly for backword or switch to vi mode?? - shellAliases = { ls = "ls --color=auto"; l = "ls";