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