type(1) fish type(1)
NAME
type - indicate how a name would be interpreted if used as a command
name
Synopsis
type [OPTIONS] name [name ...]
Description
With no options, indicate how each name would be interpreted if used as
a command name.
o -h or --help print this message
o -a or --all print all of possible definitions of the specified names
o -f or --no-functions suppresses function and builtin lookup
o -t or --type print a string which is one of alias, keyword, function,
builtin, or file if name is an alias, shell reserved word, function,
builtin, or disk file, respectively
o -p or --path either return the name of the disk file that would be
executed if name were specified as a command name, or nothing if
'type -t name' would not return 'file'
o -P or --force-path either return the name of the disk file that would
be executed if name were specified as a command name, or nothing no
file with the specified name could be found in the PATH
type returns a zero exit status if the specified command was found,
otherwise the exit status is one.
Example
type fg outputs the string 'fg is a shell builtin'.
Version 1.23.1 8 Mar 2009 type(1)
fish 1.23.1 - Generated Sun Mar 8 14:20:40 CDT 2009
