dotfiles/os/install.fish

64 lines
1.8 KiB
Fish
Raw Normal View History

2024-01-30 20:18:54 -08:00
#!/usr/bin/env fish
source "$DOT/script/utils.fish"
source "$DOT/homebrew/brew_utils.fish"
2024-01-31 20:15:12 -08:00
source "$DOT/os/apt_utils.fish"
2024-01-30 20:18:54 -08:00
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2024-02-03 12:05:02 -08:00
print_subtitle OS
2024-01-30 20:18:54 -08:00
brew_install Bash bash
2024-02-03 12:05:02 -08:00
if [ "$(uname)" = Darwin ]
2024-02-04 13:41:10 -08:00
# brew_install mas-cli mas
2024-01-30 20:18:54 -08:00
2024-02-03 12:05:02 -08:00
# Window management.
brew_install Rectangle rectangle --cask
2024-01-30 20:18:54 -08:00
2024-02-03 12:05:02 -08:00
# Networking.
brew_install Windscribe windscribe --cask
brew_install Firefox firefox --cask
brew_install qBittorrent qbittorrent --cask
2024-01-30 20:18:54 -08:00
2024-02-03 12:05:02 -08:00
# Social.
brew_install Discord discord --cask
brew_install BetterDiscord betterdiscord-installer --cask
2024-01-30 20:18:54 -08:00
2024-02-03 12:05:02 -08:00
# Productivity.
brew_install Obsidian obsidian --cask
brew_install Fantastical fantastical --cask
2024-01-30 20:18:54 -08:00
2024-02-03 12:05:02 -08:00
# Hacking.
brew_install iTerm2 iterm2 --cask
brew_install DBngin dbngin --cask
2024-01-31 20:15:12 -08:00
2024-02-03 12:05:02 -08:00
# Utilities.
brew_install "The Unarchiver" the-unarchiver --cask
2024-01-31 20:15:12 -08:00
2024-02-03 12:05:02 -08:00
else if [ "$(uname)" = Linux ] && cmd_exists snap
# Networking.
if ! cmd_exists windscribe
execute "sudo wget https://github.com/Windscribe/Desktop-App/releases/download/v2.8.6/windscribe_2.8.6_amd64.deb -O /tmp/ws.deb \
2024-01-31 20:15:12 -08:00
&& sudo apt install /tmp/ws.deb" \
2024-02-03 12:05:02 -08:00
Windscribe
end
2024-01-31 20:15:12 -08:00
2024-02-03 12:05:02 -08:00
execute "sudo snap install firefox" Firefox
execute "sudo snap install qbittorrent-arnatious" qBittorrent
2024-01-31 20:15:12 -08:00
2024-02-03 12:05:02 -08:00
# Social.
execute "sudo snap install discord" Discord
# TODO: add check for already installed.
execute "sudo wget https://github.com/BetterDiscord/Installer/releases/latest/download/BetterDiscord-Linux.AppImage -O /tmp/bd.AppImage \
2024-01-31 20:15:12 -08:00
&& sudo chmod u+x /tmp/bd.AppImage \
&& /tmp/bd.AppImage" \
2024-02-03 12:05:02 -08:00
BetterDiscord
2024-01-31 20:15:12 -08:00
2024-02-03 12:05:02 -08:00
# Productivity.
execute "sudo snap install obsidian --classic" Obsidian
2024-01-31 21:01:54 -08:00
2024-02-03 12:05:02 -08:00
# Media.
execute "sudo snap install vlc" VLC
2024-01-30 20:18:54 -08:00
end