fc, pwd: add examples (#7284)

This commit is contained in:
Iran Neto
2021-11-01 02:28:43 -03:00
committed by GitHub
parent 0b1f5be91d
commit 7097110ca0
2 changed files with 13 additions and 1 deletions

View File

@@ -15,3 +15,11 @@
- List recent commands from history: - List recent commands from history:
`fc -l` `fc -l`
- List recent commands in reverse order:
`fc -r`
- List commands in a given interval:
`fc '{{416}}' '{{420}}'`

View File

@@ -9,4 +9,8 @@
- Print the current directory, and resolve all symlinks (i.e. show the "physical" path): - Print the current directory, and resolve all symlinks (i.e. show the "physical" path):
`pwd -P` `pwd --physical`
- Print the current logical directory:
`pwd --logical`