GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
STATUS(1) fish-shell STATUS(1)

status - query fish runtime information

status
status is-login
status is-interactive
status is-interactive-read
status is-block
status is-breakpoint
status is-command-substitution
status is-no-job-control
status is-full-job-control
status is-interactive-job-control
status current-command
status current-commandline
status filename
status basename
status dirname
status fish-path
status function
status line-number
status stack-trace
status job-control CONTROL_TYPE
status features
status test-feature FEATURE
status buildinfo

With no arguments, status displays a summary of the current login and job control status of the shell.

The following operations (subcommands) are available:

Returns 0 if fish is currently executing a command substitution.
Returns 0 if fish is currently executing a block of code.
Returns 0 if fish is currently showing a prompt in the context of a breakpoint command. See also the fish_breakpoint_prompt function.
Returns 0 if fish is interactive - that is, connected to a keyboard.
Returns 0 if fish is running an interactive read builtin which is connected to a keyboard.
Returns 0 if fish is a login shell - that is, if fish should perform login tasks such as setting up PATH.
Returns 0 if full job control is enabled.
Returns 0 if interactive job control is enabled.
Returns 0 if no job control is enabled.
Prints the name of the currently-running function or command, like the deprecated _ variable.
Prints the entirety of the currently-running commandline, inclusive of all jobs and operators.
Prints the filename of the currently-running script. If the current script was called via a symlink, this will return the symlink. If the current script was received by piping into source, then this will return -.
Prints just the filename of the running script, without any path components before.
Prints just the path to the running script, without the actual filename itself. This can be relative to PWD (including just "."), depending on how the script was called. This is the same as passing the filename to dirname(3). It's useful if you want to use other files in the current script's directory or similar.
Prints the absolute path to the currently executing instance of fish. This is a best-effort attempt and the exact output is down to what the platform gives fish. In some cases you might only get "fish".
Prints the name of the currently called function if able, when missing displays "Not a function" (or equivalent translated string).
Prints the line number of the currently running script.
Prints a stack trace of all function calls on the call stack.
Sets the job control type to CONTROL_TYPE, which can be none, full, or interactive.
Lists all available feature flags.
Returns 0 when FEATURE is enabled, 1 if it is disabled, and 2 if it is not recognized.
This prints information on how fish was build - which architecture, which build system or profile was used, etc. This is mainly useful for debugging.

For backwards compatibility most subcommands can also be specified as a long or short option. For example, rather than status is-login you can type status --is-login. The flag forms are deprecated and may be removed in a future release (but not before fish 4.0).

You can only specify one subcommand per invocation even if you use the flag form of the subcommand.

2024, fish-shell developers

July 5, 2025 4.0

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.