Let's say I have a simple function serving as an alias to cd
.
c(){ cd "$@"; }
cd
cd
Note that cd
only autocompletes directory names, not simple file names.
I know about the complete
command, but where exactly is the autocompletion function used by cd
located?
Thanks for help!
查找/etc/bash_completion
或/etc/bash_completion.d
以获取系统范围的默认值。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.