mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
status docs: add current-command
Note deprecation of $_. [ci skip]
This commit is contained in:
@@ -11,6 +11,7 @@ status is-command-substitution
|
||||
status is-no-job-control
|
||||
status is-full-job-control
|
||||
status is-interactive-job-control
|
||||
status current-command
|
||||
status filename
|
||||
status fish-path
|
||||
status function
|
||||
@@ -43,6 +44,8 @@ The following operations (sub-commands) are available:
|
||||
|
||||
- `is-no-job-control` returns 0 if no job control is enabled. Also `--is-no-job-control` (no short flag).
|
||||
|
||||
- `current-command` prints the name of the currently-running function or command, like the deprecated `_` variable.
|
||||
|
||||
- `filename` prints the filename of the currently running script. Also `current-filename`, `-f` or `--current-filename`.
|
||||
|
||||
- `fish-path` prints the absolute path to the currently executing instance of fish.
|
||||
|
||||
Reference in New Issue
Block a user