2018-11-25 15:27:30 +00:00
|
|
|
# fc
|
|
|
|
|
|
|
|
> Open the most recent command and edit it.
|
2021-09-13 09:21:21 +01:00
|
|
|
> Some subcommands such as `fc list` have their own usage documentation.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/fc>.
|
2018-11-25 15:27:30 +00:00
|
|
|
|
|
|
|
- Open in the default system editor:
|
|
|
|
|
|
|
|
`fc`
|
|
|
|
|
|
|
|
- Specify an editor to open with:
|
|
|
|
|
|
|
|
`fc -e {{'emacs'}}`
|
|
|
|
|
|
|
|
- List recent commands from history:
|
|
|
|
|
|
|
|
`fc -l`
|
2021-11-01 05:28:43 +00:00
|
|
|
|
|
|
|
- List recent commands in reverse order:
|
|
|
|
|
|
|
|
`fc -r`
|
|
|
|
|
|
|
|
- List commands in a given interval:
|
|
|
|
|
|
|
|
`fc '{{416}}' '{{420}}'`
|