# Use python2 if found, otherwise fallback to python.
function _python
  if available python2
    python2 $argv
  else
    python $argv
  end
end

# Use python2 if found, otherwise fallback to python.
function _python
  if type -q python2
    python2 $argv
  else
    python $argv
  end
end

Replace `available` usage with `type -q`
Replace `available` usage with `type -q`

oh-my-fish/plugin-python