From 8eec963c2d246c48c65d89a13042af07cc498fe9 Mon Sep 17 00:00:00 2001 From: Kitty Fangs Date: Mon, 20 May 2024 05:05:02 +0000 Subject: [PATCH] feat: added homebrew and asdf --- home/.bashrc | 6 ++++ home/.config/Brewfile | 80 +++++++++++++++++++++++++++++++++++++++++++ init.sh | 22 ++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 home/.config/Brewfile diff --git a/home/.bashrc b/home/.bashrc index 1674824..c2a4607 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -2,6 +2,12 @@ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples +# Update the PATH +[ -d /usr/local/bin ] && PATH="/usr/local/bin:$PATH" +[ -d /opt/homebrew/bin ] && PATH="/opt/homebrew/bin:$PATH" +[ -d /home/linuxbrew/.linuxbrew/bin ] && PATH="/home/linuxbrew/.linuxbrew/bin:$PATH" +eval $(brew shellenv) + # If not running interactively, don't do anything case $- in *i*) ;; diff --git a/home/.config/Brewfile b/home/.config/Brewfile new file mode 100644 index 0000000..9bf1deb --- /dev/null +++ b/home/.config/Brewfile @@ -0,0 +1,80 @@ +# Yay + +tap 'homebrew/services' + +## Upgrades & Overlays + +brew 'bat' +brew 'btop' +brew 'curl' +brew 'eza' +brew 'fd' +brew 'fish' +# brew 'gawk' +brew 'httpie' +# brew 'mosh' +brew 'openssh' +brew 'ripgrep' +brew 'rsync' +# brew 'tmux' +brew 'watch' +brew 'wget' +brew 'whois' +brew 'zoxide' + +## Fun stuff + +brew 'fastfetch' +brew 'ffmpeg' +brew 'ffmpegthumbnailer' +brew 'fzf' +brew 'handbrake' +# brew 'hugo' +# brew 'imagemagick' +# brew 'marp-cli' # slides +# brew 'poppler' # pdf tools +# brew 'qpdf' # moar pdf +# brew 'tintin' +# brew 'tlrc' +# brew 'trash-cli' +brew 'unar' +brew 'yazi' +# brew 'yt-dlp' + +## Dev Tooling + +brew 'cmake' # neovim build needs +brew 'direnv' +# brew 'entr' +brew 'gh' +brew 'git' +brew 'git-lfs' +brew 'git-standup' +# brew 'go' +# brew 'golangci-lint' +brew 'jq' +# brew 'libpq' +brew 'neovim' +# brew 'overmind' +brew 'pipx' + +tap 'jesseduffield/lazygit' +brew 'jesseduffield/lazygit/lazygit' + +## Ops Tooling + +brew 'dive' +brew 'gnupg' +brew 'nmap' +# brew 'qrencode' +# brew 'wireguard-tools' + +# tap 'hashicorp/tap' +# brew 'hashicorp/tap/terraform' + +tap 'jesseduffield/lazydocker' +brew 'jesseduffield/lazydocker/lazydocker' + +## MAS time + +brew 'mas' \ No newline at end of file diff --git a/init.sh b/init.sh index 6ea8860..af8ec23 100644 --- a/init.sh +++ b/init.sh @@ -31,5 +31,27 @@ homeshick --batch clone https://github.com/KitKat31337/homepsick.git ## Link everything homeshick link --force +if ! command -v brew &>/dev/null; then + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + [ -d /usr/local/bin ] && PATH="/usr/local/bin:$PATH" + [ -d /opt/homebrew/bin ] && PATH="/opt/homebrew/bin:$PATH" + [ -d /home/linuxbrew/.linuxbrew/bin ] && PATH="/home/linuxbrew/.linuxbrew/bin:$PATH" + eval $(brew shellenv) + brew bundle install --file=~/.config/Brewfile +fi + +## All my asdf +if [[ ! -d $HOME/.asdf ]]; then + git clone https://github.com/asdf-vm/asdf.git ~/.asdf + git -C ~/.asdf checkout "$(git -C ~/.asdf describe --abbrev=0 --tags)" + + # shellcheck source=/dev/null + source "$HOME/.asdf/asdf.sh" + + asdf plugin-add python + asdf install python latest + asdf global python latest +fi + # Init Starship eval "$(starship init bash)" \ No newline at end of file