utahta / pythonbrew

Python Environment manager
MIT License
1.44k stars 162 forks source link

fishshell equivalent of etc/bashrc #126

Closed eburley closed 11 years ago

eburley commented 11 years ago

pythonbrew.fish - fishshell equivalent of pythonbrew bashrc

to use: in your config.fish if test -s ~/.pythonbrew/etc/pythonbrew.fish . ~/.pythonbrew/etc/pythonbrew.fish end

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

brecke commented 11 years ago

hi there,

This didn't work for me. I mean, no errors show up but I still can't access the pythonbrew command. Any tips? thanks.

EDIT: Also, which file are you supposed to copy that snippet into? I've found two config.fish files: /usr/local/etc/fish/config.fish and /usr/local/share/fish/config.fish

eburley commented 11 years ago

I'm using ~/.config/fish/config.fish

that file won't exist initially,

brecke commented 11 years ago

Hmmm... It does make the pythonbrew command available, but with a lot of errors:

loading fish shell

eburley commented 11 years ago

There's something different between our two environments. The __bash_as_set is trying to evaluate the 'current' file in the ~/.pythonbrew/etc directory and take a typical bash set command:

foo=bar and turn it into a setting.

what's the contents of your 'current' file look like?

brecke commented 11 years ago

Well, I just updated pythonbrew using pythonbrew update and it's working now, somehow. Perfect. Thank you for your help anyway!