home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c8687ee83f6799735348657b305ee20555552428
parent 36b78be86345bad80aa2bcb503435a10c1f431c6
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 27 Jun 2019 18:24:45 +0200

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>

Diffstat:
Mmodules/profiles/zsh.nix | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/profiles/zsh.nix b/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