compgen: add page (#2050)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
8f238ae1df
commit
4aa6a324be
23
pages/linux/compgen.md
Normal file
23
pages/linux/compgen.md
Normal 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
23
pages/osx/compgen.md
Normal 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}}`
|
Reference in New Issue
Block a user