1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/env zsh if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )) then function zle-line-init () { echoti smkx } zle -N zle-line-init function zle-line-finish () { echoti rmkx } zle -N zle-line-finish fi
Consider giving Nix/NixOS a try! <3