From 769e7570aee3ea43b68b613800e5a56297db7aea Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Fri, 20 Oct 2023 15:52:17 +0200 Subject: [PATCH] fix: brew for MacOS and HISTFILE path with whitespaces --- dot_config/zsh/01-env.zsh | 2 +- dot_config/zsh/{02-plugins.zsh => 02-plugins.zsh.tmpl} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename dot_config/zsh/{02-plugins.zsh => 02-plugins.zsh.tmpl} (100%) diff --git a/dot_config/zsh/01-env.zsh b/dot_config/zsh/01-env.zsh index f6a5e76..049ee29 100644 --- a/dot_config/zsh/01-env.zsh +++ b/dot_config/zsh/01-env.zsh @@ -53,7 +53,7 @@ export FZF_ALT_C_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat { # History {{{ # [ -z "$HISTFILE" ] && HISTFILE="$HOME/.cache/zsh/history" -[ ! -d $(dirname $HISTFILE) ] && mkdir -p $(dirname $HISTFILE) +[ ! -d "$(dirname "$HISTFILE")" ] && mkdir -p "$(dirname "$HISTFILE")" export HISTSIZE=10000 export SAVEHIST=10000 # }}} History # diff --git a/dot_config/zsh/02-plugins.zsh b/dot_config/zsh/02-plugins.zsh.tmpl similarity index 100% rename from dot_config/zsh/02-plugins.zsh rename to dot_config/zsh/02-plugins.zsh.tmpl