diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index 6be3539..deae71c 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -33,6 +33,21 @@ }; syntaxHighlighting.enable = true; syntaxHighlighting.highlighters = ["main" "brackets"]; + initExtra = '' + bindkey '^I' complete-word + bindkey '^[[Z' autosuggest-accept + # backspace + bindkey '^[[3' delete-char + # home / end go to beginning / end of line + bindkey '^[[H' beginning-of-line + bindkey '^[[F' end-of-line + # ctrl+arrow jump word + bindkey '^[[1;5D' backward-word + bindkey '^[[1;5C' forward-word + # ctrl+entf and ctrl+backspace delete word + bindkey '^[[3;5~' delete-word + bindkey '^H' backward-delete-word + ''; }; programs.starship = {