MacOS fixes

This commit is contained in:
MangoPig
2026-06-01 00:34:54 +01:00
parent 52054493cc
commit 12b752892b
3 changed files with 26 additions and 4 deletions

View File

@@ -297,6 +297,10 @@ touch "$REPO_ROOT/Zsh/.zsh_secrets"
TARGET_SHELL="$(command -v zsh)"
CURRENT_LOGIN_SHELL=""
if is_macos && [ -x /bin/zsh ]; then
TARGET_SHELL="/bin/zsh"
fi
if command -v getent >/dev/null 2>&1; then
CURRENT_LOGIN_SHELL="$(getent passwd "$(whoami)" | cut -d: -f7)"
elif is_macos && command -v dscl >/dev/null 2>&1; then