add brewfile and flatpaks

This commit is contained in:
Josh Thomas 2024-06-17 15:40:27 -05:00
parent 843992f39f
commit b4bf2ac249
No known key found for this signature in database
3 changed files with 47 additions and 15 deletions

18
.Brewfile Normal file
View file

@ -0,0 +1,18 @@
brew "atuin"
brew "bat"
brew "btop"
brew "curl"
brew "direnv"
brew "flyctl"
brew "fzf"
brew "gh"
brew "git-delta"
brew "jq"
brew "just"
brew "mise"
brew "neovim"
brew "pipx"
brew "starship"
brew "uv"
tap "jesseduffield/lazygit"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/bash
set -euo pipefail
@ -11,29 +11,34 @@ chmod 700 "$HOME/.cache" "$HOME/.config"
yadm gitconfig core.sparseCheckout true
yadm sparse-checkout set '/*' '!README.md' '!LICENSE' '!.github/workflows/*'
# install flatpaks
if command -v flatpak &>/dev/null && [ -f "$HOME/.flatpaks" ]; then
xargs -a "$HOME/.flatpaks" -r flatpak --system -y install --or-update
fi
# install homebrew tools
if command -v brew &>/dev/null && [ -f "$HOME/.Brewfile" ]; then
brew bundle --global
brew bundle --global
fi
# install programming languages
if command -v mise &>/dev/null; then
mise install
mise install
fi
if command -v nvim &>/dev/null; then
# force install of Neovim plugins
nvim --headless -u "$HOME/.config/nvim/init.lua" -c "Lazy! sync" +qa
# lazygit's native theme depends on the autogenerated one
# provided by Lazyvim, so open lazygit in neovim headless mode
# to make sure it's generated
nvim --headless -u "$HOME/.config/nvim/init.lua" -c ":lua require('lazyvim.util.lazygit').open()" +qa
# TODO: install language providers
# python: activate venv and install requirements.txt in ~/.config/nvim
# perl: cpanm -n Neovim::Ext
# - I am not, nor have never been a perl programmer, but `:checkhealth` within Neovim
# complains about this, so there must be some reason to do this (nvim internals, plugins,
# whatever..) -- doesn't really affect me but doesn't hurt to do
# force install of Neovim plugins
nvim --headless -u "$HOME/.config/nvim/init.lua" -c "Lazy! sync" +qa
# lazygit's native theme depends on the autogenerated one
# provided by Lazyvim, so open lazygit in neovim headless mode
# to make sure it's generated
nvim --headless -u "$HOME/.config/nvim/init.lua" -c ":lua require('lazyvim.util.lazygit').open()" +qa
# TODO: install language providers
# python: activate venv and install requirements.txt in ~/.config/nvim
# perl: cpanm -n Neovim::Ext
# - I am not, nor have never been a perl programmer, but `:checkhealth` within Neovim
# complains about this, so there must be some reason to do this (nvim internals, plugins,
# whatever..) -- doesn't really affect me but doesn't hurt to do
fi
# TODO: add notes about post bootstrap process

9
.flatpaks Normal file
View file

@ -0,0 +1,9 @@
com.discordapp.Discord
com.github.IsmaelMartinez.teams_for_linux
com.github.zocker_160.SyncThingy
com.slack.Slack
com.spotify.Client
io.httpie.Httpie
md.obsidian.Obsidian
org.fkoehler.KTailctl
org.libreoffice.LibreOffice