Skip to content

Commit

Permalink
feat: use Brewfile to define brew packages
Browse files Browse the repository at this point in the history
  • Loading branch information
laurigates committed Jun 1, 2024
1 parent 3c2d8f3 commit 5dff45d
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 35 deletions.
126 changes: 126 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
tap "hashicorp/tap"
tap "homebrew/bundle"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/services"
tap "int128/kubelogin"
tap "knqyf263/pet"
tap "koekeishiya/formulae"
tap "redpanda-data/tap"
brew "openssl@3"
brew "grpc"
brew "[email protected]"
brew "apache-arrow"
brew "argocd"
brew "[email protected]"
brew "azure-cli"
brew "libgit2"
brew "bat"
brew "bazelisk"
brew "ccache"
brew "cmake"
brew "coreutils"
brew "curl"
brew "dfu-util"
brew "direnv"
brew "exa"
brew "fd"
brew "fswatch"
brew "unbound"
brew "gnutls"
brew "gnupg"
brew "gpgme"
brew "libheif"
brew "libpq"
brew "poppler"
brew "gdal"
brew "gdk-pixbuf"
brew "gh"
brew "git"
brew "git-filter-repo"
brew "gobject-introspection"
brew "netpbm"
brew "pango"
brew "librsvg"
brew "graphviz"
brew "guile"
brew "hcloud"
brew "helm"
brew "httpie"
brew "[email protected]"
brew "libraw"
brew "imagemagick"
brew "iperf3"
brew "jd"
brew "jq"
brew "k9s"
brew "librdkafka"
brew "kcat"
brew "kubernetes-cli"
brew "lazygit"
brew "lighttpd"
brew "lsd"
brew "lua-language-server"
brew "luajit"
brew "luarocks"
brew "mas"
brew "minikube"
brew "most"
brew "netcat"
brew "ninja"
brew "nmap"
brew "ollama"
brew "openjdk"
brew "openshift-cli"
brew "pandoc"
brew "parallel"
brew "postgresql@14"
brew "postgis"
brew "[email protected]"
brew "qemu"
brew "qrencode"
brew "ripgrep"
brew "skaffold"
brew "so"
brew "socket_vmnet"
brew "task"
brew "tldr"
brew "tmux", args: ["HEAD"]
brew "tree"
brew "hashicorp/tap/terraform"
brew "hashicorp/tap/terraform-ls"
brew "hashicorp/tap/vault"
brew "int128/kubelogin/kubelogin"
brew "knqyf263/pet/pet"
brew "koekeishiya/formulae/skhd"
brew "redpanda-data/tap/redpanda"
cask "basictex"
cask "font-hack-nerd-font"
cask "google-cloud-sdk"
cask "keycastr"
cask "kitty"
cask "obsidian"
cask "openlens"
cask "shortcat"
cask "spotify"
cask "telegram-desktop"
cask "ukelele"
cask "visual-studio-code"
cask "wezterm-nightly"
cask "wkhtmltopdf"
cask "xquartz"
mas "GarageBand", id: 682658836
mas "Keynote", id: 409183694
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Xcode", id: 497799835
vscode "asvetliakov.vscode-neovim"
vscode "googlecloudtools.cloudcode"
vscode "hashicorp.terraform"
vscode "ms-azuretools.vscode-docker"
vscode "ms-kubernetes-tools.vscode-kubernetes-tools"
vscode "ms-python.debugpy"
vscode "ms-python.python"
vscode "ms-python.vscode-pylance"
vscode "ms-vscode-remote.remote-containers"
vscode "redhat.vscode-yaml"
28 changes: 2 additions & 26 deletions configs/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,8 @@
command: touch ~/.hushlogin
description: Disable "last login" prompt when opening a shell
-
command: brew install hcloud
description: Hetzner Cloud CLI
-
command: brew install hashicorp/tap/terraform hashicorp/tap/terraform-ls
description: Terraform
-
command: brew install --cask docker
description: Docker
-
command: brew install kubectl int128/kubelogin/kubelogin helm openlens k9s
description: Kubernetes
-
command: brew install mas keycastr shortcat skhd yabai
description: Macos tools
-
command:
- brew install jq gh most parallel git-filter-repo pandoc netcat nmap fswatch
description: Basic utilities
-
command:
- brew tap homebrew/cask-fonts
- brew install --cask font-hack-nerd-font
description: Fonts
-
command: brew install so tldr task knqyf263/pet/pet
description: Information related
command: brew bundle
description: Install and update packages defined in the Brewfile
-
command:
# Disable Keyboard -> Shortcuts -> Mission Control -> Move left/right a space.
Expand Down
1 change: 1 addition & 0 deletions zsh/zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ export SDL_VIDEO_FULLSCREEN_HEAD=0

export MAKEFLAGS="-j$(sysctl -n hw.logicalcpu)"
export BAT_THEME=TwoDark
export HOMEBREW_BUNDLE_FILE="~/dotfiles/Brewfile"
# vim:ft=sh
30 changes: 21 additions & 9 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ setopt prompt_subst
setopt auto_menu
# Extended glob can be problematic with git commands
# Because of HEAD^ etc in commands
#setopt extendedglob
setopt extendedglob

# https://grml.org/zsh/zsh-lovers.html
# Fuzzy matching of completions for when you mistype them:
Expand All @@ -89,6 +89,8 @@ zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd --depth 1 --color always --tree
zstyle ':fzf-tab:*' switch-group ',' '.'
# enable IP addresses in completions
zstyle ':completion:*' use-ip true
# tldr preview
# zstyle ':fzf-tab:complete:tldr:argument-1' fzf-preview 'tldr --color always $word'
# systemd unit status preview
zstyle ':fzf-tab:complete:systemctl-*:*' fzf-preview 'SYSTEMD_COLORS=1 systemctl status $word'
# Git previews
Expand Down Expand Up @@ -129,6 +131,7 @@ source "$HOME/dotfiles/asdf/asdf.sh"
source "$HOME/.asdf/plugins/golang/set-env.zsh"
command -v direnv &>/dev/null && eval "$(direnv hook zsh)"
source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc" &>/dev/null
autoload -Uz zkbd


# zsh-vi-mode
Expand Down Expand Up @@ -233,22 +236,29 @@ bindkey "ç" fzf-cd-widget
# command + < is similar to Alt Gr + <
bindkey -s "^[[60;9u" "|"

# bindkey -s "\e]" "~"
# bindkey -s "\e4" "$"

# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# bindkey "\e[5~" beginning-of-history
# bindkey "\e[6~" end-of-history

# alternate mappings for "page up" and "page down" to search the history
bindkey "\e[5~" history-search-backward
bindkey "\e[6~" history-search-forward
# bindkey "\e[5~" history-search-backward
# bindkey "\e[6~" history-search-forward

# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word
bindkey "\e[5C" forward-word
bindkey "\e[5D" backward-word
bindkey "\e\e[C" forward-word
bindkey "\e\e[D" backward-word
# bindkey "\e[1;5C" forward-word
# bindkey "\e[1;5D" backward-word
# bindkey "\e[5C" forward-word
# bindkey "\e[5D" backward-word
# bindkey "\e\e[C" forward-word
# bindkey "\e\e[D" backward-word

# source ~/.zkbd/$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE}
# [[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
# [[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char

# }}}

Expand All @@ -257,3 +267,5 @@ source ~/dotfiles/zsh/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

# zprof
eval "$(atuin init zsh)"
eval "$(luarocks path)"

0 comments on commit 5dff45d

Please sign in to comment.