Unverified Commit a2e6a85b authored by Francesco Giannelli's avatar Francesco Giannelli Committed by GitHub
Browse files

fix(plugins): cache thefuck aliases (#5522)

parent 94ea7b45
...@@ -5,7 +5,8 @@ if [[ -z $commands[thefuck] ]]; then ...@@ -5,7 +5,8 @@ if [[ -z $commands[thefuck] ]]; then
fi fi
# Register alias # Register alias
eval "$(thefuck --alias)" [[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thefuck --alias > $ZSH_CACHE_DIR/thefuck
source $ZSH_CACHE_DIR/thefuck
fuck-command-line() { fuck-command-line() {
local 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)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment