Skip to content

Instantly share code, notes, and snippets.

@codeRhythm
Last active May 15, 2020 10:57
Show Gist options
  • Save codeRhythm/d6a06c28d5652c2fe928697aa9d08dc5 to your computer and use it in GitHub Desktop.
Save codeRhythm/d6a06c28d5652c2fe928697aa9d08dc5 to your computer and use it in GitHub Desktop.
cygwin "adb shell"配置

配置cygwin的ssh server

修改~/.bashrc

alias adbshell='stty -icanon -echo -echoe intr ^0 ; adb shell ; stty sane'

或者

adb() {
    if [[ $@ == "shell" ]]; then
        command stty -icanon -echo -echoe intr ^0 ; adb shell ; stty sane
    else
        command adb "$@"
    fi
}
@gMan1990
Copy link

gMan1990 commented May 15, 2020

没用呀,不知道啥原因,这个吗?stty: 缺少"intr" 的参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment