compgen, eval, export, file: move to common (#6508)

This commit is contained in:
marchersimon
2021-09-13 15:24:42 +02:00
committed by GitHub
parent efeee14594
commit ac46610ce6
13 changed files with 2 additions and 78 deletions

View File

@@ -0,0 +1,24 @@
# compgen
> 用于在 bash 中自动完成的内置命令,按两次 tab 键即可调用该命令。
> 更多信息:<https://www.gnu.org/software/bash/manual/bash.html#index-compgen>.
- 显示所有可以执行的命令:
`compgen -c`
- 列出所有别名:
`compgen -a`
- 列出所有可以运行的函数:
`compgen -A function`
- 列出所有 shell 的保留关键字:
`compgen -k`
- 查看以 'ls' 开头的所有可用命令和别名:
`compgen -ac {{ls}}`