From 76f1ec769052f84faa0a1644bd096763c257c9ad Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Wed, 19 Jun 2024 23:32:59 +0200 Subject: [PATCH] Bugfix. --- config/zsh/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 1dcaf8f..41f1818 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -1,6 +1,8 @@ # mac specific configuration -touch $HOME/.hushlogin -eval "$(/opt/homebrew/bin/brew shellenv)" +if [[ $(uname -s) = "Darwin" ]]; then + touch $HOME/.hushlogin + eval "$(/opt/homebrew/bin/brew shellenv)" +fi # prepare directories mkdir -p $XDG_CACHE_HOME/zsh