github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/management/which_doc.yaml (about)

     1  - DocumentID: which
     2    Title: >+
     3      `which`
     4    CategoryID: commands
     5    Summary: >-
     6      Locate command origin
     7    Description: |-
     8     `which` locates a command's origin. If STDOUT is a TTY, then it's output will be
     9     human readable. If STDOUT is a pipe then it's output will be a simple list.
    10  
    11     `which` can take multiple parameters, each representing a different command you
    12     want looked up.
    13    Usage: |-
    14      ```
    15      which command... -> <stdout>
    16      ```
    17    Examples: |-
    18      **TTY output:**
    19  
    20      ```
    21      » which cat dog jobs git dug
    22      cat => (/bin/cat) cat - concatenate and print files
    23      dog => unknown
    24      jobs => (alias) fid-list --jobs => (builtin) Lists all running functions within the current Murex session
    25      git => (/opt/homebrew/bin/git -> ../Cellar/git/2.41.0/bin/git) git - the stupid content tracker
    26      dug => (murex function) A bit like dig but which outputs JSON
    27      ```
    28  
    29      **Piped output:**
    30  
    31      ```
    32      » which cat dog jobs git dug -> cat
    33      /bin/cat
    34      unknown
    35      alias
    36      /opt/homebrew/bin/git
    37      function
    38      ```
    39    Detail: |-
    40      {{ include "gen/includes/command-types.inc.md" }}
    41    Synonyms:
    42    Related:
    43      - alias
    44      - function
    45      - exec
    46      - fexec
    47      - type
    48      - out
    49      - exit