added some key bindings for compatibility

This commit is contained in:
John Lancaster
2026-04-19 14:45:36 -05:00
parent 718aa466b6
commit 0abbcf0fd2
+23 -1
View File
@@ -1,6 +1,23 @@
{ self, inputs, ... }:
let
username = "john";
homeEndKeyBindings = ''
# Normalize common Home/End escape sequences across terminal emulators.
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
bindkey "^[[7~" beginning-of-line
bindkey "^[[8~" end-of-line
bindkey "^[OH" beginning-of-line
bindkey "^[OF" end-of-line
# Normalize common Ctrl+Arrow sequences for word-wise movement.
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
bindkey "^[[5D" backward-word
bindkey "^[[5C" forward-word
'';
in
{
flake.modules = {
@@ -20,7 +37,10 @@ in
enableCompletion = true;
autosuggestion.enable = true;
# syntaxHighlighting.enable = true;
initContent = "HOST=$(hostname -s)";
initContent = ''
HOST=$(hostname -s)
${homeEndKeyBindings}
'';
dotDir = "${config.xdg.configHome}/zsh";
history = {
append = true;
@@ -108,6 +128,8 @@ in
HOSTNAME=$(hostname -s)
${homeEndKeyBindings}
eval "$(direnv hook zsh)"
${aliasStr}