install: Differentiate between macOS and Linux dependencies

This commit is contained in:
2024-11-15 20:28:35 -05:00
parent 7cc5d63a7f
commit 3363ba4324
2 changed files with 38 additions and 7 deletions

25
dependencies/apt.txt vendored Normal file
View File

@@ -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

View File

@@ -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