OSDN Git Service

mkshrc: Only apply the resize to adb shells
authorRicardo Cerqueira <ricardo@cyngn.com>
Sun, 4 Jan 2015 02:31:49 +0000 (02:31 +0000)
committerSteve Kondik <steve@cyngn.com>
Wed, 24 Aug 2016 20:24:24 +0000 (13:24 -0700)
This resize is messing with apps that do their own resizes, so apply
it only for ADB shells

Change-Id: I5b0e4bc2c2546809d829e84ac0291405c51da016

mkshrc

diff --git a/mkshrc b/mkshrc
index f88abe7..2d6c003 100644 (file)
--- a/mkshrc
+++ b/mkshrc
@@ -20,4 +20,6 @@ PS4='[$EPOCHREALTIME] '; PS1='${|
        return $e
 }$HOSTNAME:${PWD:-?} '"$PS1 "
 
-resize
+if [ "z$ANDROID_SOCKET_adbd" != "z" ]; then
+   resize
+fi