install: Differentiate between macOS and Linux dependencies
This commit is contained in:
25
dependencies/apt.txt
vendored
Normal file
25
dependencies/apt.txt
vendored
Normal 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
|
||||
|
||||
20
install.zsh
20
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
|
||||
|
||||
Reference in New Issue
Block a user