Slightly patched oh-my-zsh tree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
260 B

fuck-command-line() {
FUCK=$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)
[ -z $FUCK ] && echo -n -e "\a" && return
BUFFER=$FUCK
zle end-of-line
}
zle -N fuck-command-line
# Defined shortcut keys: [Esc] [Esc]
bindkey "\e\e" fuck-command-line