1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 00:40:07 +00:00

Thefuck: fixed compability with latest version

This commit is contained in:
Roland Chernov 2015-07-23 20:54:51 +09:00
parent 54e27406dc
commit f534b4b321

View file

@ -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