Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有办法通过序号使用 cd / d 等命令? #13

Open
erystasius opened this issue Jul 13, 2020 · 1 comment
Open

有没有办法通过序号使用 cd / d 等命令? #13

erystasius opened this issue Jul 13, 2020 · 1 comment

Comments

@erystasius
Copy link

erystasius commented Jul 13, 2020

在某些文件夹中,我会有大量中文名开头的文件或目录,我必须输入大量中文,或者是 TAB 无数次才能准确的操作我需要的文件或目录。ls 中提供了序号,但是我没有找到文档中提供根据序号操作的方法。

例如我的 ls 输出如下信息:

----
  #  文件大小       修改日期               文件(目录)
  0         -  2019-09-30 16:19:44  壁纸/
  1         -  2019-09-29 15:30:17  词典/
  2         -  2020-02-10 11:55:30  工具/
  3         -  2019-10-29 01:07:03  配置/
  4         -  2020-04-09 09:31:00  头像/
  5         -  2019-09-29 15:30:22  系统/
  6         -  2019-09-29 15:35:39  字体/
       总: 0B                       文件总数: 0, 目录总数: 7
----

我想要 cd 进入“系统”目录,我需要输入 cd 系,再加上一次 TAB 才能进入该目录
能否让我只输入例如 cd #5,直接进入该目录?

@yashika
Copy link

yashika commented Apr 6, 2022

mark me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants