mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
Thefuck: fix global variable assignment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user