function git_exists -d 'Checks if git is present'
  # Use which instead of type. We always use command to execute
  # git and this is much, much cheaper
  which git 2> /dev/null >/dev/null
end

function git_exists -d 'Checks if git is present'
  # Use command -s instead of type. which would also
  # work, but a builtin must work
  command -s git 2> /dev/null >/dev/null
end

Use command -s instead of which
Use command -s instead of which

wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar