Add c-x e in zsh

This commit is contained in:
2025-07-27 00:19:00 +02:00
parent fa1bff94b4
commit 239de92695
2 changed files with 9 additions and 2 deletions

View File

@@ -57,13 +57,16 @@
kgy = "k get -o yaml";
kgw = "k get -w";
kd = "k describe";
ka = "k describe";
ka = "k apply";
kaf = "k apply -f";
ke = "k edit";
kl = "k logs";
kp = "k patch";
kr = "k rollout";
kpf = "k port-forward";
kdel = "k delete";
kdelf = "k delete -f";
kcleanup = "kdel pod --field-selector status.phase==Failed -A; kdel pod --field-selector status.phase==Succeeded -A";
# Misc
dc = "docker-compose";
@@ -207,7 +210,7 @@
'')
(lib.mkOrder 1000 (builtins.readFile ./init.zsh))
(lib.mkOrder 1400 ''
# only start atuin if it's in the path (fix distrox or other temp fs issues)
# only start atuin if it's in the path (fix distrobox or other temp fs issues)
if command -v atuin > /dev/null && [[ $options[zle] = on ]]; then
eval "$(atuin init zsh ${lib.escapeShellArgs config.programs.atuin.flags})"
fi

View File

@@ -22,6 +22,10 @@ bindkey '^Z' foreground
(whence -w run-help | grep -q alias) && unalias run-help
autoload run-help
autoload edit-command-line
zle -N edit-command-line
bindkey '^Xe' edit-command-line
# Allow customization per client.
[[ -f ~/.config/zsh/custom.zsh ]] && source ~/.config/zsh/custom.zsh