edc / bass

Make Bash utilities usable in Fish shell
MIT License
2.22k stars 71 forks source link

Allow to override python function. #18

Closed danhper closed 8 years ago

danhper commented 8 years ago

On some OS, Python default version is 3 (ArchLinux for me). As the Python script only works with Python 2, I thought it would be a good idea to allow the user to be able to decide what Python should be used.

With this approach, users who do not need to customize this do not have to do anything, and those who need to customize just need to add

function __bass_python; python2 $argv; end

in their config and that's it.

edc commented 8 years ago

Bass actually works with Python 3. Could you post the error message you had when using Python 3? Ideally we want the short python script to be agnostic about python 2/3.

danhper commented 8 years ago

Ok, if it shoud work with both Python 2 and Python 3, I will close this PR and send one to fix the compatibility with Python 3, thanks!