fix(thefuck): quote ZSH_CACHE_DIR path

path wasnt quoted, would break if it had spaces
This commit is contained in:
aviu16 2026-02-15 06:33:23 -05:00
commit 37606f07f8

View file

@ -5,8 +5,8 @@ if [[ -z $commands[thefuck] ]]; then
fi
# Register alias
[[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thefuck --alias > $ZSH_CACHE_DIR/thefuck
source $ZSH_CACHE_DIR/thefuck
[[ ! -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)"