简体   繁体   中英

Bash cd command autocompletion for custom alias

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM