about summary refs log tree commit diff
path: root/zsh/.zsh.d/00_terminfo.zsh
blob: 5f15f4adc92e1c365f8380a67c63f6c3176b3370 (plain) (blame)
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