Commit c8687ee83f67

Vincent Demeester <vincent@sbr.pm>
2019-06-27 18:24:45
profiles.zsh: add more sane defaults
- autocd, autosuggestions - defaultKeymap to emacs - some history customs - use `select-word-style bash` 👼 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 36b78be
Changed files (1)
modules
profiles
modules/profiles/zsh.nix
@@ -17,9 +17,18 @@ in
   config = mkIf cfg.enable {
     programs.zsh = {
       enable = true;
+      autocd = true;
+      defaultKeymap = "emacs";
+      enableAutosuggestions = true;
+      history = {
+        expireDuplicatesFirst = true;
+        ignoreDups = true;
+      };
       shellAliases = import ./aliases.shell.nix;
       initExtra = ''
         if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi
+        autoload -U select-word-style
+        select-word-style bash
       '';
       profileExtra = ''
         if [ -e /home/vincent/.nix-profile/etc/profile.d/nix.sh ]; then . /home/vincent/.nix-profile/etc/profile.d/nix.sh; fi