Linuxbrew / legacy-linuxbrew

:skull: This repository is defunct, because it has been split into https://github.com/Linuxbrew/brew and https://github.com/Linuxbrew/homebrew-core
http://linuxbrew.sh
Other
2.23k stars 296 forks source link

how to add linuxbrew permanantly to my .bashrc or .zshrc #1030

Closed ahmedmagds closed 8 years ago

ahmedmagds commented 8 years ago

Each time I close my terminal from my Vitual box biolinux 8, I have to write these commands again

export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"

Is there a way not to do that each time?

tseemann commented 8 years ago

Put them in your $HOME/.bash_profile file. Things in there will be run for every shell you start.

If you are in a multi-user system you can put them in a file called /etc/profile.d/linuxbrew.sh and they will be run anytime a BASH shell is started.

I'm not sure how to do it for ZSH, but i'm guessing there is files called $HOME/.zshrc etc.