From 3363ba4324b6c92a8cf5d2b5971f2c1b77676e58 Mon Sep 17 00:00:00 2001 From: Michael Yockey Date: Fri, 15 Nov 2024 20:28:35 -0500 Subject: [PATCH] install: Differentiate between macOS and Linux dependencies --- dependencies/apt.txt | 25 +++++++++++++++++++++++++ install.zsh | 20 +++++++++++++------- 2 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 dependencies/apt.txt diff --git a/dependencies/apt.txt b/dependencies/apt.txt new file mode 100644 index 0000000..d6901b6 --- /dev/null +++ b/dependencies/apt.txt @@ -0,0 +1,25 @@ +direnv +fastfetch +fd +fzf +gh +git +gnupg +golang +lua-language-server +nodenv +nodenv/nodenv/nodenv-default-packages +pyenv +rbenv +ruby-build +rust +rust-analyzer +stow +tmux +tmuxp +wget +zoxide +zsh +zsh-completions +zsh-autosuggestions + diff --git a/install.zsh b/install.zsh index 2d296ef..75ee624 100755 --- a/install.zsh +++ b/install.zsh @@ -1,13 +1,19 @@ #!/bin/zsh -which brew > /dev/null -if (( $? != 0 )); then - echo "First installing Homebrew" - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -fi +case `uname` in + Darwin) + which brew > /dev/null + if (( $? != 0 )); then + echo "First installing Homebrew" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + fi -echo "Installing dependencies from Homebrew" -brew install -q $(< ./dependencies/homebrew.txt) + echo "Installing dependencies from Homebrew" + brew install -q $(< ./dependencies/homebrew.txt) + ;; + Linux) + ;; +esac echo "Installing rbenv plugins" pushd ruby/.rbenv/plugins