dotfiles/setup.sh

30 lines
775 B
Bash
Raw Normal View History

#!/bin/bash
2021-08-16 13:40:38 +00:00
setup_macos() {
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
}
for conf in $(ls dotfiles); do
ln -sn $PWD/dotfiles/$conf $HOME/.config/$conf
done
2021-08-16 13:40:38 +00:00
# Determine which OS is in use
2021-09-22 12:44:38 +00:00
case "$(uname)" in
2021-08-16 13:40:38 +00:00
Linux*) INSTALL_CMD="yay -S";;
Darwin*) INSTALL_CMD="brew install";;
esac
# Install software
$INSTALL_CMD fish git cloc htop ncdu tree
$INSTALL_CMD alacritty neovim zellij zoxide
2021-08-16 13:40:38 +00:00
$INSTALL_CMD rustup rust-analyzer
$INSTALL_CMD go gopls
$INSTALL_CMD nodejs yarn
$INSTALL_CMD obsidian
2021-08-16 13:40:38 +00:00
2021-09-22 12:44:38 +00:00
if [[ "$(uname)" == "Linux" ]]; then
$INSTALL_CMD rofi
$INSTALL_CMD lxappearance adapta-gtk-theme papirus-icon-theme nerd-fonts-complete
2021-08-16 13:40:38 +00:00
$INSTALL_CMD docker docker-compose
2022-01-14 03:20:05 +00:00
fi