diff --git a/pages/linux/fc.md b/pages/linux/fc.md new file mode 100644 index 000000000..7e6c46410 --- /dev/null +++ b/pages/linux/fc.md @@ -0,0 +1,15 @@ +# fc + +> Open the most recent command and edit it. + +- Open in the default system editor: + +`fc` + +- Specify an editor to open with: + +`fc -e {{'emacs'}}` + +- List recent commands from history: + +`fc -l` diff --git a/pages/osx/fc.md b/pages/osx/fc.md new file mode 100644 index 000000000..7e6c46410 --- /dev/null +++ b/pages/osx/fc.md @@ -0,0 +1,15 @@ +# fc + +> Open the most recent command and edit it. + +- Open in the default system editor: + +`fc` + +- Specify an editor to open with: + +`fc -e {{'emacs'}}` + +- List recent commands from history: + +`fc -l`