所以我up在我的 shell(主要是 OSX 或 Ubuntu 上的 Bash)中使用 ,但有时我知道我想要光标当前位置之后的东西。有什么办法可以让我所在的线路与上面的线路一起完成?打up然后left很烦人。
任何其他技巧也很酷,除了tab我们现在都在谈论的 :)
这是一个示例(根据 ~quack 的请求):
我输入mkdir /where/the/hell/is/that/thing,然后我想 cd 进入同一个目录。但现在我知道元 b :)
mkdir /where/the/hell/is/that/thing
keyboard-shortcuts bash
bash ×1
keyboard-shortcuts ×1