我可以配置bash“自动完成”来理解文件夹名称,而不是从@
开始吗?目前似乎尝试列出网络位置。
您可以通过使用反斜杠(@
)进行转义来自动填充以\
开头的文件,如@lurker在评论中所提到的那样,或者使用引号前面的表达式('
| "
):
反斜杠\
:
cd node_modules/\@myf
- > [tab]
- > cd node_modules/\@myfolder
单引号'
:
cd 'node_modules/@myf
- > [tab]
- > cd 'node_modules/@myfolder'
双引号"
:
cd "node_modules/@myf
- > [tab]
- > cd "node_modules/@myfolder"