Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use the Fish shell in Mac OS X and I cannot figure out how to install pythonbrew. Is this possible and if so how? What I think I need to figure out is how to convert the following for my .bashrc to the Fish equivalent and place it in my fish.config:

[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc

However, I'm not even sure about that.

share|improve this question
add comment

1 Answer

You can place the following lines into your ~/.config/fish/config.fish file:

if test -s ~/.pythonbrew/etc/bashrc
    . ~/.pythonbrew/etc/bashrc
end

However, the bashrc file in ~/.pythonbrew/etc/ is not recognized by the fish shell either, so it needs to be translated also.

(I have not finished fishifying it yet.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.