4 examples for which

{{ score }}
  # locates executable
which bro
        
{{ score }}
  # Shows all install locations of an executable (in this case ruby)
which -a ruby
        
{{ score }}
  # Edit 'myscript.sh' wherever it may be (assuming it is located in a $PATH directory)
vim $(which myscript.sh)
        
{{ score }}
  # return 0 or 1 instead of file path
which -s some_file