diff --git a/home-manager/modules/shell/zsh/default.nix b/home-manager/modules/shell/zsh/default.nix index 0deb795..a4bbc42 100644 --- a/home-manager/modules/shell/zsh/default.nix +++ b/home-manager/modules/shell/zsh/default.nix @@ -44,12 +44,23 @@ in { } zle -N zle_go_dir_up + # Alt+Up bindkey "^[[1;3A" zle_go_dir_up + + # Alt+Down + bindkey "^[[1;3B" kill-buffer + + # Up/Down bindkey "^[[A" history-substring-search-up bindkey "^[[B" history-substring-search-down + # Ctrl+Left/Right bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word + + # Alt+Left/Right + bindkey "^[[1;3C" forward-word + bindkey "^[[1;3D" backward-word ''; zplug = { diff --git a/starship/starship.toml b/starship/starship.toml index 69cbbd6..8679ea9 100644 --- a/starship/starship.toml +++ b/starship/starship.toml @@ -1,3 +1,4 @@ +# newline between shell prompts add_newline = false #format = "$all$directory$character"