假设我有这个long one-liner命令:
am force-stop com.example.foo; am force-stop com.example.bar; am force-stop com.example.foo2 am force-stop com.example.bar2; am force-stop com.example.foo; am force-stop com.example.bar; ps|grep example
当我复制到终端时,它不会像普通终端一样包装,相反,它保持单行:
您可以看到,当光标通过复制粘贴或按 END 移动到结尾时,我无法在单个屏幕中查看整个命令。它只显示部分命令,不能轻松重新复制一部分命令。
所需的行为:
是可能的吗?我了解到 COLUMNS=150
可以从80到150增加adb命令宽度,但我仍然无法找到实现这一目标的方法。
请注意,我不想在重用命令时手动添加
,这也不起作用: