From 7eefc579ae41ea1af61bffbc686ace217d47a519 Mon Sep 17 00:00:00 2001 From: js0ny Date: Wed, 19 Nov 2025 20:47:50 +0000 Subject: [PATCH] zsh: bash M-# behaviour, shift-tab, fish wordchar --- nixcfgs/users/js0ny/programs/shell/zsh.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nixcfgs/users/js0ny/programs/shell/zsh.nix b/nixcfgs/users/js0ny/programs/shell/zsh.nix index 0914648..e592b61 100644 --- a/nixcfgs/users/js0ny/programs/shell/zsh.nix +++ b/nixcfgs/users/js0ny/programs/shell/zsh.nix @@ -38,8 +38,21 @@ in { "root" ]; }; + + history = { + ignorePatterns = [ + ''tmp'' + ''Authorization:'' + ]; + }; + initContent = '' ${aliasCfg.posixFx} + # Misc + # ========== + # Remove / from word characters, for easier path navigation (using backward-word, forward-word, etc) + export WORDCHARS=''${WORDCHARS//\//} + # Options # ========== @@ -101,6 +114,11 @@ in { bindkey '^[e' edit-command-line bindkey '^[v' edit-command-line + bindkey '^[[Z' reverse-menu-complete # Shift-Tab + # bindkey -M menuselect '^[[Z' reverse-menu-complete # Shift-Tab in menu select mode + + bindkey '^[#' pound-insert # Alt-# to comment line + # Misc # ======== # source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh