mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-18 16:40:19 +08:00
fix(thefuck): quote ZSH_CACHE_DIR path (#13569)
path wasnt quoted, would break if it had spaces
This commit is contained in:
parent
45dd7d006a
commit
44f2a128aa
@ -5,8 +5,8 @@ if [[ -z $commands[thefuck] ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Register alias
|
# Register alias
|
||||||
[[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thefuck --alias > $ZSH_CACHE_DIR/thefuck
|
[[ ! -a "$ZSH_CACHE_DIR/thefuck" ]] && thefuck --alias > "$ZSH_CACHE_DIR/thefuck"
|
||||||
source $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)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user