Switch back to macOS.

This commit is contained in:
Bartek Stalewski 2024-06-19 16:19:39 +02:00
parent f8866a9eca
commit e819a06cda
No known key found for this signature in database
137 changed files with 192 additions and 23 deletions

22
_linux/_cli/zsh/keys.zsh Normal file
View file

@ -0,0 +1,22 @@
# key mode
bindkey -e
# proudly stolen from oh-my-zsh
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
function zle-line-init() {
echoti smkx
}
function zle-line-finish() {
echoti rmkx
}
zle -N zle-line-init
zle -N zle-line-finish
fi
if [[ -n "${terminfo[kcuu1]}" ]]; then
autoload -U up-line-or-beginning-search
zle -N up-line-or-beginning-search
bindkey -M emacs "${terminfo[kcuu1]}" up-line-or-beginning-search
bindkey -M viins "${terminfo[kcuu1]}" up-line-or-beginning-search
bindkey -M vicmd "${terminfo[kcuu1]}" up-line-or-beginning-search
fi