From 87a3ce42894f4c43ee8d19683dc9dad7137903da Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Thu, 22 Aug 2024 19:20:30 +0200 Subject: [PATCH] chore: Update gitconfig symlink based on OSTYPE --- bin/actions/update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/actions/update.sh b/bin/actions/update.sh index 103364c..50a2d55 100755 --- a/bin/actions/update.sh +++ b/bin/actions/update.sh @@ -15,6 +15,12 @@ check_or_make_symlink ~/.zshrc ~/dotfiles/zshrc check_or_make_symlink ~/.config/Code/User/settings.json ~/dotfiles/vscode/settings.json check_or_make_symlink ~/.config/starship.toml ~/dotfiles/config/starship.toml +if [[ "$OSTYPE" == "darwin"* ]]; then + check_or_make_symlink ~/.gitconfig ~/dotfiles/config/gitconfig.macos +else + check_or_make_symlink ~/.gitconfig ~/dotfiles/config/gitconfig.linux +fi + printfe "%s\n" "cyan" "Ensuring packages are installed..." source ~/dotfiles/bin/helpers/packages.sh ensure_packages_installed