我使用以下函数在更改当前工作目录后列出目录内容:
function c() { cd $@; ls; }
如何为“c”函数启用 bash 目录名称补全,以便它也适用于 $CDPATH 中的目录?
bash
bash ×1