From e6695fb840a6b1e2a6adb15d74ee356542412ac5 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 2 Aug 2023 20:20:05 +0900 Subject: [PATCH] Fix sdcv path --- profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profile b/profile index 6806447..bd5b2fa 100755 --- a/profile +++ b/profile @@ -132,7 +132,10 @@ then export PIPX_DEFAULT_PYTHON="$HOME"/.brew/bin/python3 fi -export STARDICT_DATA_DIR=$HOME/.brew/share/sdcv-dict-oxford +if which brew >/dev/null +then + export STARDICT_DATA_DIR=`brew --prefix`/share/sdcv-dict-oxford +fi export HOMEBREW_NO_AUTO_UPDATE=1