Browse Source

Thefuck: fixed compability with latest version

Roland Chernov 8 years ago
parent
commit
f534b4b321
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/thefuck/thefuck.plugin.zsh

+ 1 - 1
plugins/thefuck/thefuck.plugin.zsh

@@ -7,7 +7,7 @@ fi
 eval "$(thefuck-alias)"
 
 fuck-command-line() {
-    FUCK="$(thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"
+    FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"
     [[ -z $FUCK ]] && echo -n -e "\a" && return
     BUFFER=$FUCK
     zle end-of-line