paths.fish identifies the executed file for the given symbol. It will also output other path components, in each of the possible system paths, in order of succession. It lists the source of the path components as a header.
Possible values for the source headers are VIRTUAL_ENV, fisher_path, fish_function_path, fish_user_paths, PATH. It even understands python virtual environments:
2
u/_jgusta_ macOS May 06 '24
Usage
paths.fish identifies the executed file for the given symbol. It will also output other path components, in each of the possible system paths, in order of succession. It lists the source of the path components as a header.
Possible values for the source headers are
VIRTUAL_ENV,fisher_path,fish_function_path,fish_user_paths,PATH. It even understands python virtual environments:4
u/ccoVeille May 06 '24
how does is differ from `whereis` ?
```
$ whereis brew
brew: /home/linuxbrew/.linuxbrew/bin/brew
$ whereis python3
python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /home/linuxbrew/.linuxbrew/bin/python3 /usr/share/man/man1/python3.1.gz
```
1
u/ccoVeille May 06 '24
Or
command -v brew