From 1daff408912c5566b6867c5d28b03fe0dfa9ee3d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 19 Feb 2021 19:16:08 +0000 Subject: [PATCH] home: zsh: add more customisation This will make it closer to my usual shell setup in Arch. --- home/zsh.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/zsh.nix b/home/zsh.nix index d28a697..279b63c 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -27,6 +27,21 @@ # Modal editing is life, but CLI benefits from emacs gymnastics defaultKeymap = "emacs"; + + initExtra = '' + # Show an error when a globbing expansion doesn't find any match + setopt nomatch + # List on ambiguous completion and Insert first match immediately + setopt autolist menucomplete + # Use pushd when cd-ing around + setopt autopushd pushdminus pushdsilent + # Use single quotes in string without the weird escape tricks + setopt rcquotes + # Single word commands can resume an existing job + setopt autoresume + # Those options aren't wanted + unsetopt beep extendedglob notify + ''; }; # Fuzzy-wuzzy