From 71afafbd1ec5a0ef3a88d5b5842f49c1a49a389b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 05:33:47 +0000 Subject: [PATCH 01/17] build(deps): bump actions/checkout from 4.1.1 to 4.1.6 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.1...v4.1.6) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2487588..87fd21c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: name: Run test suite runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4.1.6 # Run the tests - name: 'Run tests' From 7d74d07873b95b1846cbc5444a4062ddf95d3d3e Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:11:40 +0100 Subject: [PATCH 02/17] feat: install meetingbar --- script/install.d/72-meetingbar.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 script/install.d/72-meetingbar.sh diff --git a/script/install.d/72-meetingbar.sh b/script/install.d/72-meetingbar.sh new file mode 100644 index 0000000..51c4a22 --- /dev/null +++ b/script/install.d/72-meetingbar.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# (macOS only) Install MeetingBar. +# + +if [[ "$OSTYPE" == "darwin"* ]]; then + if ! brew list --cask meetingbar &> /dev/null; then + brew install --cask meetingbar + else + echo "MeetingBar is already installed." + fi +fi From bd0473644247ad03ffb0640e9ca23e9ecfe07707 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:11:51 +0100 Subject: [PATCH 03/17] fix: disable omz auto update --- files/home/.zshrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/home/.zshrc b/files/home/.zshrc index cc8be21..7d0f2ec 100644 --- a/files/home/.zshrc +++ b/files/home/.zshrc @@ -8,10 +8,9 @@ source $HOME/.profile export POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true ZSH_THEME="powerlevel10k/powerlevel10k" +export DISABLE_AUTO_UPDATE="true" export ZSH="$HOME/.oh-my-zsh" -zstyle ':omz:update' frequency 13 - # https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins plugins=( aliases From e2555d931c4ecee0594f8e1cdcce70ea8ae42d09 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:12:07 +0100 Subject: [PATCH 04/17] fix: brew install logs --- script/install.d/02-brew.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/install.d/02-brew.sh b/script/install.d/02-brew.sh index 36c3a0c..c95bd8a 100644 --- a/script/install.d/02-brew.sh +++ b/script/install.d/02-brew.sh @@ -8,8 +8,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then export NONINTERACTIVE=1 if ! command -v brew &> /dev/null; then + echo "Installing Homebrew..." bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" eval "$(/opt/homebrew/bin/brew shellenv)" + else + echo "Homebrew is already installed." fi brew update From 67a10c0dd0cc6a570ae77aff25562333b403c68c Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:13:59 +0100 Subject: [PATCH 05/17] feat: install betterdisplay --- script/install.d/73-betterdisplay.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 script/install.d/73-betterdisplay.sh diff --git a/script/install.d/73-betterdisplay.sh b/script/install.d/73-betterdisplay.sh new file mode 100644 index 0000000..d5c5280 --- /dev/null +++ b/script/install.d/73-betterdisplay.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# (macOS only) Install BetterDisplay. +# + +if [[ "$OSTYPE" == "darwin"* ]]; then + if ! brew list --cask betterdisplay &> /dev/null; then + brew install --cask betterdisplay + else + echo "BetterDisplay is already installed." + fi +fi From ffe69649455cb59f8e990938967554a98fbadde2 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:14:04 +0100 Subject: [PATCH 06/17] fix: dots install alias --- files/home/.profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/home/.profile b/files/home/.profile index 169017e..d82cc78 100644 --- a/files/home/.profile +++ b/files/home/.profile @@ -94,4 +94,5 @@ fi # (__) (__)(_")("_)\_)-' '-(_/(__) (__)(__) # alias j="z" -alias fd=`command -v fdfind` +alias fd="command -v fdfind" +alias dots="$DOTFILES/install" From 34e5b0005533b1197d600c93715b396d9fc7a9e6 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:40:57 +0100 Subject: [PATCH 07/17] feat: install cmatrix --- script/install.d/81-cmatrix.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 script/install.d/81-cmatrix.sh diff --git a/script/install.d/81-cmatrix.sh b/script/install.d/81-cmatrix.sh new file mode 100644 index 0000000..1d5a082 --- /dev/null +++ b/script/install.d/81-cmatrix.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# Install cmatrix. +# + +if ! command -v "cmatrix" &>/dev/null; then + if [[ "$OSTYPE" == "linux-gnu"* ]]; then + sudo apt-get install -qq cmatrix &>/dev/null + elif [[ "$OSTYPE" == "darwin"* ]]; then + brew install cmatrix + fi +fi From 9ee405e26a2619b2f382611e24070dd1b9b32a8f Mon Sep 17 00:00:00 2001 From: Andrejus Date: Wed, 19 Jun 2024 11:19:18 +0100 Subject: [PATCH 08/17] fix: codespaces ssh --- script/install.d/01-ssh.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/install.d/01-ssh.sh b/script/install.d/01-ssh.sh index 49a3d1e..911fe29 100644 --- a/script/install.d/01-ssh.sh +++ b/script/install.d/01-ssh.sh @@ -5,6 +5,11 @@ # Print SSH key. # +# skip if CODESPACES is set +if [ -n "$CODESPACES" ]; then + export SKIP_SSH_CONFIG=1 +fi + # skip if SKIP_SSH_CONFIG is set if [ -z "$SKIP_SSH_CONFIG" ]; then ssh_method="ed25519" From 983caa83ddf1f61edd98d2aca1828a0600803e1c Mon Sep 17 00:00:00 2001 From: Andrejus Date: Thu, 20 Jun 2024 18:32:26 +0100 Subject: [PATCH 09/17] feat: allow specific install targets --- README.md | 8 ++++++++ script/install | 24 ++++++++++++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ccc38b5..18b2386 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,14 @@ A local repository can be installed by running: ./script/install +Once installed, updates can be applied by running: + + dots + +A specific script can be installed by running: + + dots script1 script2 ... + ### Automated setup This repository can be installed without a local copy diff --git a/script/install b/script/install index 2004745..1fc658b 100755 --- a/script/install +++ b/script/install @@ -5,8 +5,8 @@ set -eo pipefail # Script to run all install scripts contained in install.d # -printf "\n\t <<< dots installer >>>\n" -printf "\t========================\n\n\n" +printf "\n\t <<< dots >>>\n" +printf "\t==============\n\n\n" # Prevent running as root if [[ $EUID -eq 0 && -z "$SKIP_SUDO_CHECK" ]]; then @@ -49,12 +49,28 @@ if [[ ! -f "$log_target" ]]; then fi log_abs_target=$(readlink -f "$log_target") +# Set up targets +targets=($@) + # Run install scripts -install() { +run() { echo "Running \"$(basename "$0")\" at \"$(date)\"" echo "Running as \"$(whoami)\" on \"$(hostname)\"" + if [[ -n "$targets" ]]; then + echo "Running ${#targets[@]} install target(s): ${targets[@]}" + else + echo "Running all install targets" + fi for script in $install_dir/*.sh; do + if [[ -n "$targets" ]]; then + script_name=$(basename $script .sh) + script_name=${script_name#*-} + if [[ ! " ${targets[*]} " =~ " $script_name " ]]; then + continue + fi + fi + script_name=$(basename $script) printf "\n\n<<< $script_name:\n" source $script @@ -63,7 +79,7 @@ install() { done } echo "install: Logging to \"$log_abs_target\"" -install 2>&1 | tee "$log_abs_target" +run 2>&1 | tee "$log_abs_target" # Clean up unset uuid dir install_dir log_dir log_abs_target log_target From 94c298a26f95665a6eafd79352cda5f957066d33 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Thu, 20 Jun 2024 18:32:34 +0100 Subject: [PATCH 10/17] feat: move out aliases --- files/home/.aliases | 3 +++ files/home/.profile | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 files/home/.aliases diff --git a/files/home/.aliases b/files/home/.aliases new file mode 100644 index 0000000..d481a10 --- /dev/null +++ b/files/home/.aliases @@ -0,0 +1,3 @@ +alias j="z" +alias fd="command -v fdfind" +alias dots=$DOTFILES/install diff --git a/files/home/.profile b/files/home/.profile index d82cc78..9f82a6a 100644 --- a/files/home/.profile +++ b/files/home/.profile @@ -85,6 +85,7 @@ if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh fi + # _ _ _ ____ # U /"\ u |"| ___ U /"\ u / __"| u # \/ _ \/ U | | u |_"_| \/ _ \/ <\___ \/ @@ -93,6 +94,7 @@ fi # \\ >> // \\.-,_|___|_,-.\\ >> )( (__) # (__) (__)(_")("_)\_)-' '-(_/(__) (__)(__) # -alias j="z" -alias fd="command -v fdfind" -alias dots="$DOTFILES/install" + +if [ -f ~/.aliases ]; then + source ~/.aliases +fi From e728ed98a3c628af9363608fae18d7fae399bedf Mon Sep 17 00:00:00 2001 From: Andrejus Date: Thu, 20 Jun 2024 18:32:44 +0100 Subject: [PATCH 11/17] feat: bump install names --- script/install.d/{00-os_info.sh => 00-os.sh} | 0 script/install.d/{21-gh_cli.sh => 21-gh.sh} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename script/install.d/{00-os_info.sh => 00-os.sh} (100%) rename script/install.d/{21-gh_cli.sh => 21-gh.sh} (100%) diff --git a/script/install.d/00-os_info.sh b/script/install.d/00-os.sh similarity index 100% rename from script/install.d/00-os_info.sh rename to script/install.d/00-os.sh diff --git a/script/install.d/21-gh_cli.sh b/script/install.d/21-gh.sh similarity index 100% rename from script/install.d/21-gh_cli.sh rename to script/install.d/21-gh.sh From 36060c133afa779a42b2c4c50f369ffce2ca4cc7 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 21 Jun 2024 10:13:50 +0100 Subject: [PATCH 12/17] feat: install dockutil --- script/install.d/74-dockutil.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 script/install.d/74-dockutil.sh diff --git a/script/install.d/74-dockutil.sh b/script/install.d/74-dockutil.sh new file mode 100644 index 0000000..ea05580 --- /dev/null +++ b/script/install.d/74-dockutil.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# (macOS only) Install dockutil. +# + +if [[ "$OSTYPE" == "darwin"* ]]; then + if ! brew list dockutil &> /dev/null; then + brew install dockutil + else + echo "dockutil is already installed." + fi +fi From 9e02205ca2a5b3f120ad846718103bf331b32b2c Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 21 Jun 2024 10:14:34 +0100 Subject: [PATCH 13/17] feat: add zip aliases --- files/home/.aliases | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/files/home/.aliases b/files/home/.aliases index d481a10..8413dd7 100644 --- a/files/home/.aliases +++ b/files/home/.aliases @@ -1,3 +1,11 @@ -alias j="z" -alias fd="command -v fdfind" +# dotfiles alias dots=$DOTFILES/install + +# jump around +alias j="z" + +# zip +alias tarz="tar -czvf" +# unzip +alias tarx="tar -xzvf" +alias taru="tarx" From b8894d4fb342f545596c718b80bf38bf5e2b06e3 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 21 Jun 2024 11:36:20 +0100 Subject: [PATCH 14/17] feat: add macos config --- script/install.d/97-macos.sh | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 script/install.d/97-macos.sh diff --git a/script/install.d/97-macos.sh b/script/install.d/97-macos.sh new file mode 100644 index 0000000..4e65a27 --- /dev/null +++ b/script/install.d/97-macos.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# (macOS only) Configure defaults +# + +if [[ "$OSTYPE" == "darwin"* ]]; then + # Keyboard + # -------- + # off -- Keyboard: Capitalize words automatically + defaults write -globalDomain NSAutomaticCapitalizationEnabled -bool false + + # off -- Keyboard: Add period with double-space + defaults write -globalDomain NSAutomaticPeriodSubstitutionEnabled -bool false + + # off -- Keyboard: Quote substitution + defaults write -globalDomain NSAutomaticQuoteSubstitutionEnabled -bool false + + # off -- Keyboard: Dash substitution + defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false + + # Appearance + # ---------- + # Multicolour -- Appearance + defaults write -globalDomain AppleAquaColorVariant -int 0 + + # on -- Appearance: Dark mode + defaults write -globalDomain AppleInterfaceStyle -string "Dark" + + # #2CB494 -- Highlight color + defaults write -globalDomain AppleHighlightColor -string "0.172549 0.705882 0.580392" + + # Control Center + # -------------- + # off -- Control Center: Show Bluetooth + defaults write \ + ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ + Bluetooth \ + -int 24 + + # off -- Control Center: Show Wi-Fi + defaults write \ + ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ + WiFi \ + -int 24 + + # Finder + # ------ + # on -- Finder: Add quit option + defaults write com.apple.finder QuitMenuItem -bool false +fi From 531fd18888b11d760e256328c17a1237558da33d Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 21 Jun 2024 18:51:30 +0100 Subject: [PATCH 15/17] feat: mac dock and finder --- script/install.d/97-macos.sh | 141 ++++++++++++++++++++++++++++++++++- 1 file changed, 138 insertions(+), 3 deletions(-) diff --git a/script/install.d/97-macos.sh b/script/install.d/97-macos.sh index 4e65a27..19a1427 100644 --- a/script/install.d/97-macos.sh +++ b/script/install.d/97-macos.sh @@ -20,6 +20,10 @@ if [[ "$OSTYPE" == "darwin"* ]]; then # off -- Keyboard: Dash substitution defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false + # off -- Keyboard: Auto-correct + defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false + defaults write NSGlobalDomain WebAutomaticSpellingCorrectionEnabled -bool false + # Appearance # ---------- # Multicolour -- Appearance @@ -31,22 +35,153 @@ if [[ "$OSTYPE" == "darwin"* ]]; then # #2CB494 -- Highlight color defaults write -globalDomain AppleHighlightColor -string "0.172549 0.705882 0.580392" + killall SystemUIServer 2>/dev/null || true + # Control Center # -------------- - # off -- Control Center: Show Bluetooth + # off -- Control Center: Show Bluetooth icon in menu bar defaults write \ ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ Bluetooth \ -int 24 - # off -- Control Center: Show Wi-Fi + # off -- Control Center: Show Wi-Fi icon in menu bar defaults write \ ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ WiFi \ -int 24 + # off -- Control Center: Show Now Playing icon in menu bar + defaults write \ + ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ + NowPlaying \ + -int 24 + + # off -- Control Center: Show Battery icon in menu bar + defaults write \ + ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ + Battery \ + -int 24 + + killall ControlCenter 2>/dev/null || true + # Finder # ------ # on -- Finder: Add quit option - defaults write com.apple.finder QuitMenuItem -bool false + defaults write com.apple.finder QuitMenuItem -bool true + + # on -- Finder: Show hidden files + defaults write com.apple.finder AppleShowAllFiles -bool true + + # on -- Finder: Show all filename extensions + defaults write NSGlobalDomain AppleShowAllExtensions -bool true + + # off -- Finder: Show warning before changing an extension + defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false + + # on -- Finder: Show path bar + defaults write com.apple.finder ShowPathbar -bool true + + # on -- Finder: Show status bar + defaults write com.apple.finder ShowStatusBar -bool true + + # on -- Finder: Keep folders on top + defaults write com.apple.finder _FXSortFoldersFirst -bool true + + # off -- Finder: Use macOS Crash Reporter + defaults write com.apple.CrashReporter DialogType -string "none" + + # off -- Finder: Enable dashboard widgets + defaults write com.apple.dashboard mcx-disabled -bool true + + # on -- Finder: Show hard drives on desktop + defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true + + # on -- Finder: Show external hard drives on desktop + defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true + + # on -- Finder: Show removable media on desktop + defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true + + # on -- Finder: Show mounted servers on desktop + defaults write com.apple.finder ShowMountedServersOnDesktop -bool true + + # off -- Finder: Show recent tags + defaults write com.apple.finder ShowRecentTags -bool false + + # off -- Finder: Create .DS_Store files + defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true + defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true + + # home -- Finder: New Finder windows show + defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/" + + # list -- Finder: Preferred view style + defaults write com.apple.finder FXPreferredViewStyle -string "nlsv" + + killall Finder 2>/dev/null || true + + # Spotlight + # --------- + # on -- Spotlight: Hide menu bar icon + defaults write com.apple.Spotlight MenuItemHidden -int 1 + + killall Spotlight 2>/dev/null || true + + # Dock + # ---- + # off -- Dock: Show recent applications + defaults write com.apple.dock show-recents -bool false + + # on -- Dock: Use scroll gestures + defaults write com.apple.dock scroll-to-open -bool true + + # Remove default apps from the dock + default_apps=( + "Messages" + "Mail" + "Maps" + "Photos" + "FaceTime" + "Calendar" + "Contacts" + "Reminders" + "Freeform" + "TV" + "Music" + "News" + "Keynote" + "Numbers" + "Pages" + ) + for default_app in default_apps; do + dockutil --remove "$default_app" --no-restart 1>/dev/null 2>&1 || true + done + + # Set up apps in the dock + dock_order=( + "/System/Library/CoreServices/Finder.app" # Cannot be moved + "/System/Applications/App Store.app" + "/System/Applications/Launchpad.app" + "/System/Applications/System Settings.app" + "/System/Applications/Utilities/Activity Monitor.app" + "/Applications/iTerm.app" + ) + dock_state=$(defaults read com.apple.dock persistent-apps) + for i in "${!dock_order[@]}"; do + if [[ $i -ne 0 ]]; then + path="${dock_order[$i]}" + name=$(basename "$path" | sed 's/\.app$//') + if [[ $dock_state == *"$name"* ]]; then + dockutil --move "${path}" --position $i --no-restart + else + dockutil --add "${path}" --position $i --no-restart + fi + fi + done + if [[ ! $dock_state == *"spacer"* ]]; then + dockutil --add '' --type spacer --section apps --position "${#dock_order[@]}" --no-restart + fi + + killall Dock 2>/dev/null || true fi From 26858669a8cedef19bdffa32601d782e1ad89452 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Mon, 24 Jun 2024 17:44:00 +0100 Subject: [PATCH 16/17] fix: print gh cli version --- script/install.d/21-gh.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/install.d/21-gh.sh b/script/install.d/21-gh.sh index 6d8e6dc..a40174e 100644 --- a/script/install.d/21-gh.sh +++ b/script/install.d/21-gh.sh @@ -17,3 +17,5 @@ if ! command -v gh &>/dev/null; then brew install gh fi fi + +gh --version From 468a9766d93e74d556e787c6d5db8cac6dc1e893 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Mon, 24 Jun 2024 17:44:08 +0100 Subject: [PATCH 17/17] feat: install azure cli --- script/install.d/22-azure.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 script/install.d/22-azure.sh diff --git a/script/install.d/22-azure.sh b/script/install.d/22-azure.sh new file mode 100644 index 0000000..02a8d2e --- /dev/null +++ b/script/install.d/22-azure.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# Install Azure CLI. +# + +if ! command -v az &>/dev/null; then + if [[ "$OSTYPE" == "linux-gnu"* ]]; then + # https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt + curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash + elif [[ "$OSTYPE" == "darwin"* ]]; then + brew install azure-cli + fi +fi + +az --version