Add linuxbrew setup

This commit is contained in:
Gabriel Augendre 2023-02-01 21:28:16 +01:00
parent 9744eaa2d4
commit 640dda63ad
2 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,8 @@
fish_add_path /opt/homebrew/bin $HOME/.local/bin $HOME/.cargo/bin $HOME/.krew/bin 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 VIRTUAL_ENV_DISABLE_PROMPT 1
set -gx PYENV_ROOT $HOME/.pyenv set -gx PYENV_ROOT $HOME/.pyenv
fish_add_path $HOME/.pyenv/bin fish_add_path $HOME/.pyenv/bin

View file

@ -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/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -s "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" [[ -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 }}