chore: Some comments
This commit is contained in:
parent
b90bdbcc30
commit
aabd58ea3c
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
ZSHENV_PATH="/etc/zshenv"
|
ZSHENV_PATH="/etc/zshenv"
|
||||||
|
|
||||||
|
# FIXME: Use POSIX-compliant method
|
||||||
case "$(realpath $ZSHENV_PATH)" in
|
case "$(realpath $ZSHENV_PATH)" in
|
||||||
*"/nix/"* )
|
*"/nix/"* )
|
||||||
ZSHENV_PATH="/etc/zshenv.local"
|
ZSHENV_PATH="/etc/zshenv.local"
|
||||||
|
@ -11,7 +12,8 @@ case "$(realpath $ZSHENV_PATH)" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
__EXTRA=""
|
__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
|
# 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="$(system_profiler SPBluetoothDataType | grep "Address:" | head -1 | sed "s/ *Address: \(.*\)/\1/g")"
|
||||||
[ "$BT_ADDRESS" = "" ] || __EXTRA="""
|
[ "$BT_ADDRESS" = "" ] || __EXTRA="""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue