From 7d4a49f6942efc7e7fc75b3b310c7758c606e1f8 Mon Sep 17 00:00:00 2001 From: vapao Date: Sun, 22 May 2022 16:33:29 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/libs/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/libs/ssh.py b/spug_api/libs/ssh.py index 33d46fc..b7f9d1b 100644 --- a/spug_api/libs/ssh.py +++ b/spug_api/libs/ssh.py @@ -152,7 +152,7 @@ class SSH: counter = 0 self.channel = self.client.invoke_shell() - command = 'set +o zle\nset -o no_nomatch\nexport PS1= && stty -echo\n' + command = 'set +o history\nset +o zle\nset -o no_nomatch\nexport PS1= && stty -echo\n' if self.default_env: command += f'{self.default_env}\n' command += f'echo {self.eof} $?\n'