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
a2e6a85b
Unverified
Commit
a2e6a85b
authored
Jun 12, 2021
by
Francesco Giannelli
Committed by
GitHub
Jun 11, 2021
Browse files
fix(plugins): cache thefuck aliases (#5522)
parent
94ea7b45
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/thefuck/thefuck.plugin.zsh
View file @
a2e6a85b
...
...
@@ -5,7 +5,8 @@ if [[ -z $commands[thefuck] ]]; then
fi
# Register alias
eval
"
$(
thefuck
--alias
)
"
[[
!
-a
$ZSH_CACHE_DIR
/thefuck
]]
&&
thefuck
--alias
>
$ZSH_CACHE_DIR
/thefuck
source
$ZSH_CACHE_DIR
/thefuck
fuck-command-line
()
{
local
FUCK
=
"
$(
THEFUCK_REQUIRE_CONFIRMATION
=
0 thefuck
$(
fc
-ln
-1
|
tail
-n
1
)
2> /dev/null
)
"
...
...
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