f534b4b321d5db4b3d42d3e2cf1f2b2af5bd3c64

Author
Roland Chernov <mail@9241406380.org>
Committer
Roland Chernov <mail@9241406380.org>
Date

Message

Thefuck: fixed compability with latest version

Diff

 1diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
 2index 10467d33777846c781f7e21e45398d958b1b2da6..739bb0b9af2107cf473300b125a8db6f9dcf720e 100644
 3--- a/plugins/thefuck/thefuck.plugin.zsh
 4+++ b/plugins/thefuck/thefuck.plugin.zsh
 5@@ -7,7 +7,7 @@ fi
 6 eval "$(thefuck-alias)"
 7 
 8 fuck-command-line() {
 9-    FUCK="$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"
10+    FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"
11     [[ -z $FUCK ]] && echo -n -e "\a" && return
12     BUFFER=$FUCK
13     zle end-of-line