From dfd7dddf75418c67c5411dcd7688543f3227bac1 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 2 Nov 2024 08:16:03 -0700 Subject: [PATCH] Remove call to dirname(1) --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index 3d46694..8cc53ef 100644 --- a/init.zsh +++ b/init.zsh @@ -36,7 +36,7 @@ unsetopt beep notify # Some general, random configuration # History stuff [ -v HISTFILE ] || HISTFILE="${HOME}/.cache/zsh/history" -[ ! -d "$(dirname "${HISTFILE}")" ] && mkdir -p "$(dirname "${HISTFILE}")" +[ ! -d "${HISTFILE:h}" ] && mkdir -p "${HISTFILE:h}" HISTSIZE=1000 SAVEHIST=10000