Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
fb8c446e
Commit
fb8c446e
authored
Jul 30, 2015
by
Roland Chernov
Browse files
Thefuck: fix global variable assignment
parent
f534b4b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/thefuck/thefuck.plugin.zsh
View file @
fb8c446e
...
@@ -7,7 +7,7 @@ fi
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment