1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00

compgen: add page (#2050)

This commit is contained in:
Chuning Song 2018-03-31 17:51:22 +08:00 committed by Starbeamrainbowlabs
parent 8f238ae1df
commit 4aa6a324be
2 changed files with 46 additions and 0 deletions

23
pages/linux/compgen.md Normal file
View file

@ -0,0 +1,23 @@
# compgen
> A built-in command for auto-completion in bash, which is called on pressing TAB key twice.
- List all commands that you could run:
`compgen -c`
- List all aliases:
`compgen -a`
- List all functions that you could run:
`compgen -A function`
- Show shell reserved key words:
`compgen -k`
- See all available commands/aliases starting with 'ls':
`compgen -ac {{ls}}`

23
pages/osx/compgen.md Normal file
View file

@ -0,0 +1,23 @@
# compgen
> A built-in command for auto-completion in bash, which is called on pressing TAB key twice.
- List all commands that you could run:
`compgen -c`
- List all aliases:
`compgen -a`
- List all functions that you could run:
`compgen -A function`
- Show shell reserved key words:
`compgen -k`
- See all available commands/aliases starting with 'ls':
`compgen -ac {{ls}}`