split homebrew bundle files

This commit is contained in:
Noah Masur 2020-11-28 12:53:42 -05:00
parent dfc02156a4
commit 2689810b1a
8 changed files with 81 additions and 56 deletions

3
.gitignore vendored
View File

@ -6,5 +6,4 @@ nvim.configlink/autoload/**
spacemacs.d.symlink/.spacemacs.env spacemacs.d.symlink/.spacemacs.env
fish.configlink/config.fish.bac fish.configlink/config.fish.bac
fish_variables fish_variables
*.lock.json homebrew/*.lock.json

View File

@ -1,53 +0,0 @@
# Homebrew Installations
tap "nmasur/repo"
tap "cjbassi/ytop"
tap "superfly/tap"
brew "fish" # My shell
brew "neovim" # My editor
brew "git" # Latest git
brew "exa" # Better ls
brew "tmux" # Terminal panes and windows
brew "tealdeer" # Mini man page
brew "starship" # Shell prompt
brew "ripgrep" # Faster, better grep
brew "fzf" # Fuzzy finder
brew "fd" # Faster, better find
brew "sd" # Faster, better sed
brew "bat" # Better cat
brew "zoxide" # Better autojump
brew "jq" # JSON manipulation
brew "xsv" # CSV manipulation
brew "dos2unix" # File conversion
brew "trash" # Delete to trash
brew "wget" # Not quite curl
brew "telnet" # Check networking
brew "prettyping" # Better ping
brew "httpie" # Better curl
brew "nushell" # Data manipulation shell
brew "shellcheck" # Lint for bash
brew "python" # Latest version of Python
brew "poetry" # Project-based Python dependencies
brew "ruby" # Newer than default ruby
brew "ansible" # Deploy to local server
brew "terraform" # Deploy cloud infra
brew "node" # Ugh, nodejs (for Vim CoC)
brew "packer" # Build deployment images
brew "gpg" # Encryption
brew "qrencode" # Make a QR code
brew "youtube-dl" # Download YouTube videos
brew "googler" # Search Google
brew "gh" # GitHub commands
brew "pandoc" # Document converter
brew "awscli" # AWS API tools
brew "kubectl" # Kubernetes CLI
brew "cjbassi/ytop/ytop" # Fancy system performance
brew "haskell-stack" # Latest version of Haskell
brew "noti" # Create system notifications
brew "kakoune" # Modal editor
brew "b2-tools" # BackBlaze B2 storage
brew "k9s" # Kubernetes TUI
brew "superfly/tap/flyctl" # Fly.io CLI
brew "nmasur/repo/drips" # Retrieve AWS IPs
brew "nmasur/repo/update-ssh-config" # Update .ssh/config

16
homebrew/core.Brewfile Normal file
View File

@ -0,0 +1,16 @@
# Core Packages
brew "fish" # My shell
brew "neovim" # My editor
brew "git" # Latest git
brew "exa" # Better ls
brew "tmux" # Terminal panes and windows
brew "tealdeer" # Mini man page
brew "starship" # Shell prompt
brew "ripgrep" # Faster, better grep
brew "fzf" # Fuzzy finder
brew "fd" # Faster, better find
brew "sd" # Faster, better sed
brew "bat" # Better cat
brew "zoxide" # Better autojump
brew "node" # Ugh, nodejs (for Vim CoC)

13
homebrew/devops.Brewfile Normal file
View File

@ -0,0 +1,13 @@
# DevOps Packages
tap "nmasur/repo"
tap "superfly/tap"
brew "ansible" # Deploy to local server
brew "terraform" # Deploy cloud infra
brew "packer" # Build deployment images
brew "awscli" # AWS API tools
brew "kubectl" # Kubernetes CLI
brew "k9s" # Kubernetes TUI
brew "superfly/tap/flyctl" # Fly.io CLI
brew "nmasur/repo/drips" # Retrieve AWS IPs

View File

@ -0,0 +1,7 @@
# Programming Packages
brew "shellcheck" # Lint for bash
brew "python" # Latest version of Python
brew "poetry" # Project-based Python dependencies
brew "ruby" # Newer than default ruby
brew "haskell-stack" # Latest version of Haskell

25
homebrew/utils.Brewfile Normal file
View File

@ -0,0 +1,25 @@
# Utility Packages
tap "nmasur/repo"
tap "cjbassi/ytop"
brew "jq" # JSON manipulation
brew "xsv" # CSV manipulation
brew "dos2unix" # File conversion
brew "trash" # Delete to trash
brew "wget" # Not quite curl
brew "telnet" # Check networking
brew "prettyping" # Better ping
brew "httpie" # Better curl
brew "nushell" # Data manipulation shell
brew "gpg" # Encryption
brew "qrencode" # Make a QR code
brew "youtube-dl" # Download YouTube videos
brew "googler" # Search Google
brew "gh" # GitHub commands
brew "pandoc" # Document converter
brew "noti" # Create system notifications
brew "b2-tools" # BackBlaze B2 storage
brew "cjbassi/ytop/ytop" # Fancy system performance
brew "nmasur/repo/update-ssh-config" # Update .ssh/config
brew "kakoune" # Modal editor

17
scripts/all_brews Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
DOTS=$(dirname "$0")/..
cd "$DOTS" || (echo "Directory not found: $DOTS"; exit 1)
DOTS="$PWD"
all_brews() {
brewfile=$DOTS/homebrew/Caskfile
for brewfile in $(find "$DOTS/homebrew" -iname "*.Brewfile")
do
/usr/local/bin/brew bundle check --file "$brewfile" \
&& /usr/local/bin/brew bundle --file "$brewfile"
done \
&& echo "all brews installed ✓"
}
all_brews

View File

@ -28,7 +28,7 @@ install_homebrew() {
} }
install_brews() { install_brews() {
brewfile=$DOTS/homebrew/Brewfile brewfile=$DOTS/homebrew/core.Brewfile
if ! (/usr/local/bin/brew bundle check --file "$brewfile" > /dev/null) if ! (/usr/local/bin/brew bundle check --file "$brewfile" > /dev/null)
then then
/usr/local/bin/brew bundle --file "$brewfile" /usr/local/bin/brew bundle --file "$brewfile"
@ -102,6 +102,7 @@ use_fish_shell
echo "" echo ""
echo "consider running other scripts:" echo "consider running other scripts:"
echo " - all_brews"
echo " - install_casks" echo " - install_casks"
echo " - configure_macos" echo " - configure_macos"
echo " - install_rust" echo " - install_rust"