summaryrefslogtreecommitdiff
path: root/plugins/thefuck
diff options
context:
space:
mode:
authorRoland Chernov <mail@9241406380.org>2015-07-30 21:04:58 +0900
committerRoland Chernov <mail@9241406380.org>2015-07-30 21:04:58 +0900
commitfb8c446ea4317c391321a29dc97677bc6fdeb0cf (patch)
tree90105cf9d43ffc84ad049f2cd53e754e8562178f /plugins/thefuck
parentf534b4b321d5db4b3d42d3e2cf1f2b2af5bd3c64 (diff)
downloadzsh-fb8c446ea4317c391321a29dc97677bc6fdeb0cf.tar.gz
zsh-fb8c446ea4317c391321a29dc97677bc6fdeb0cf.tar.bz2
zsh-fb8c446ea4317c391321a29dc97677bc6fdeb0cf.zip
Thefuck: fix global variable assignment
Diffstat (limited to 'plugins/thefuck')
-rw-r--r--plugins/thefuck/thefuck.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
index 739bb0b9a..8b1746e85 100644
--- a/plugins/thefuck/thefuck.plugin.zsh
+++ b/plugins/thefuck/thefuck.plugin.zsh
@@ -7,7 +7,7 @@ fi
eval "$(thefuck-alias)"
fuck-command-line() {
- FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"
+ local 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