android - 如何保存shell命令以备下次使用(Android Studio终端)

标签 android terminal macros

假设我在 Android Studio 终端中运行这个命令

D:\.android\sdk\platform-tools/adb shell input text 'Some Text'

如何保存(作为宏)以备下次使用 关闭并打开 Android Studio 后 而不是重新输入完​​整的命令?

我知道在当前 session 中我们可以使用向上/向下箭头,我正在查看要保存并永久保存的宏之类的东西......

最佳答案

我也遇到了这个问题,并通过创建 .bat 减少了 80% 的时间和精力来运行 shell 命令。只有一个字母的文件,如 d.bat等(用于减少键盘交互以减少时间的单个字母)。
如果您不知道 什么是bat文件? 如何处理? 请查看 answer .

关于android - 如何保存shell命令以备下次使用(Android Studio终端),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47908883/

相关文章:

android - 如何获取小区广播消息?

Android Kotlin 单元测试失败并出现 io.mockk.MockKException : no answer found for

安卓- eclipse : display google maps using coordinates obtained using gps

android - 绝对路径的 Ti.Media.Android.scanMediaFiles

c++ - 图书馆操纵终端空间?

ruby-on-rails - 打开一个新的终端选项卡并在里面运行命令,只有在打开选项卡之后

linux - 有人可以解释这是做什么的吗? (恶意)

c++ - C++ 能否定义宏将浮点文字重写为 double 文字或至少删除 f 后缀?

clojure - 在 Clojure 中的嵌套宏之间传递编译时状态

macros - 这些宏有什么区别?