From aabd58ea3c90760707afd614d5d1a1414160ca8b Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 11 Jul 2024 19:55:30 +0700 Subject: [PATCH] chore: Some comments --- zsh-xdg-setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh-xdg-setup b/zsh-xdg-setup index 02f101f..52d73de 100755 --- a/zsh-xdg-setup +++ b/zsh-xdg-setup @@ -4,6 +4,7 @@ ZSHENV_PATH="/etc/zshenv" +# FIXME: Use POSIX-compliant method case "$(realpath $ZSHENV_PATH)" in *"/nix/"* ) ZSHENV_PATH="/etc/zshenv.local" @@ -11,7 +12,8 @@ case "$(realpath $ZSHENV_PATH)" in esac __EXTRA="" -if [[ "$OSTYPE" == "darwin"* ]]; then +# FIXME: Use POSIX-compliant method +if [[ "$OSTYPE" == "darwin"* ]]; then # We can't access ZI_IS_DARWIN just yet, so we'll do it manually # REF: https://github.com/null2264/Hackintosh-L460?tab=readme-ov-file#bluetooth-workaround BT_ADDRESS="$(system_profiler SPBluetoothDataType | grep "Address:" | head -1 | sed "s/ *Address: \(.*\)/\1/g")" [ "$BT_ADDRESS" = "" ] || __EXTRA="""