# ZSH keybindings
#
# $Revision: 45a6d8582b36 $ $Date: Thu, 14 Mar 2024 21:47:43 -0400 $
# $Source: /doc/html/htdocs/dotfiles/top/dot-zsh/bindkeys.zsh $
# $Host: hairball.my.domain $
# $UUID: 1f125751-729e-5b46-81f9-fde03b084020 $
#
# Run under emacs commandline mode
bindkey -e

# Do history expansion on space
bindkey ' ' magic-space

# Alt-O inserts "sudo " at the start of line
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^[o" insert-sudo
