Commit 7a13a407 authored by Roland Chernov's avatar Roland Chernov
Browse files

Added thefuck plugin https://github.com/nvbn/thefuck

parent a207a38d
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment