Mic*_*ant 60 command-line shell bash directory cd-command
我要么在 20 年前的某个地方拥有过这个,要么我梦想过它。
基本上:
如果如果输入blobblob我得到
blobblob: command not found
很公平。
我希望这样,当我的 shell 收到这些错误时 - 命令未找到 - 它会检查是否存在具有该名称('blobblob')的目录,如果存在,则是cd该目录。
我敢肯定,不这样做或谨慎行事是有原因的。
我只是认为它会非常整洁,我想通过找到某个地方(比如这里!)来尝试一下。
我不知道如何进行这可能意味着的 shell 编程。
jw0*_*013 80
shopt -s autocdsetopt autocdset implicitcd此外,'autojump' 是一个有用的工具。安装后,它会记住目录,以便您可以键入 j abc,如果您之前访问过 abc,请说 x/d/f/g/t/abc 然后它会 cd 到那里!
https://github.com/joelthelion/autojump
| 归档时间: |
|
| 查看次数: |
5250 次 |
| 最近记录: |