25 lines
496 B
Text
25 lines
496 B
Text
|
#!/usr/bin/env zsh
|
||
|
# Eryn Wells <eryn@erynwells.me>
|
||
|
|
||
|
function init_rc_configure_zle
|
||
|
{
|
||
|
local mode=$1
|
||
|
if [[ -z "$mode" ]]; then
|
||
|
mode=emacs
|
||
|
fi
|
||
|
|
||
|
function configure_zle_emacs { }
|
||
|
function configure_zle_vim { }
|
||
|
|
||
|
if [[ $mode == 'vim' ]]; then
|
||
|
bindkey -v
|
||
|
configure_zle_vim
|
||
|
zle -A .backward-delete-char vi-backward-delete-char
|
||
|
elif [[ $mode == 'emacs' ]]; then
|
||
|
bindkey -e
|
||
|
configure_zle_emacs
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
init_rc_configure_zle "$@"
|