Skip to content

Commit 44f2a12

Browse files
authored
fix(thefuck): quote ZSH_CACHE_DIR path (ohmyzsh#13569)
path wasnt quoted, would break if it had spaces
1 parent 45dd7d0 commit 44f2a12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/thefuck/thefuck.plugin.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if [[ -z $commands[thefuck] ]]; then
55
fi
66

77
# Register alias
8-
[[ ! -a $ZSH_CACHE_DIR/thefuck ]] && thefuck --alias > $ZSH_CACHE_DIR/thefuck
9-
source $ZSH_CACHE_DIR/thefuck
8+
[[ ! -a "$ZSH_CACHE_DIR/thefuck" ]] && thefuck --alias > "$ZSH_CACHE_DIR/thefuck"
9+
source "$ZSH_CACHE_DIR/thefuck"
1010

1111
fuck-command-line() {
1212
local FUCK="$(THEFUCK_REQUIRE_CONFIRMATION=0 thefuck $(fc -ln -1 | tail -n 1) 2> /dev/null)"

0 commit comments

Comments
 (0)