mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Thefuck: fix global variable assignment
This commit is contained in:
parent
f534b4b321
commit
fb8c446ea4
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ fi
|
||||||
eval "$(thefuck-alias)"
|
eval "$(thefuck-alias)"
|
||||||
|
|
||||||
fuck-command-line() {
|
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
|
[[ -z $FUCK ]] && echo -n -e "\a" && return
|
||||||
BUFFER=$FUCK
|
BUFFER=$FUCK
|
||||||
zle end-of-line
|
zle end-of-line
|
||||||
|
|
Loading…
Reference in a new issue