From 640dda63ad823d6caf6281cb805496e054053432 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 1 Feb 2023 21:28:16 +0100 Subject: [PATCH] Add linuxbrew setup --- dot_config/fish/private_config.fish.tmpl | 4 ++++ private_dot_profile | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/dot_config/fish/private_config.fish.tmpl b/dot_config/fish/private_config.fish.tmpl index a693c5d..b92831f 100644 --- a/dot_config/fish/private_config.fish.tmpl +++ b/dot_config/fish/private_config.fish.tmpl @@ -1,4 +1,8 @@ fish_add_path /opt/homebrew/bin $HOME/.local/bin $HOME/.cargo/bin $HOME/.krew/bin +{{ if eq .chezmoi.os "linux" }} +fish_add_path /home/linuxbrew/.linuxbrew/bin +eval "$(brew shellenv)" +{{ end }} set -gx VIRTUAL_ENV_DISABLE_PROMPT 1 set -gx PYENV_ROOT $HOME/.pyenv fish_add_path $HOME/.pyenv/bin diff --git a/private_dot_profile b/private_dot_profile index 363dca4..311121e 100644 --- a/private_dot_profile +++ b/private_dot_profile @@ -4,3 +4,9 @@ export PATH="$PATH:$HOME/.rvm/bin" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* [[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" + +{{ if eq .chezmoi.os "linux" }} +# Set PATH, MANPATH, etc., for Homebrew. +eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +{{ end }} +