From 949065be2cd3d13f9c2473259e52812ada2b51db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E6=9E=AB?= Date: Thu, 1 Oct 2015 16:25:17 +0800 Subject: [PATCH] Update connect.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正vim颜色 --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index e5d372bf0..98c66aa95 100644 --- a/connect.py +++ b/connect.py @@ -258,7 +258,7 @@ def connect(username, password, host, port, login_name): """ Connect server. """ - ps1 = "PS1='[\u@%s \W]\$ '\n" % host + ps1 = "PS1='[\u@%s \W]\$ ' && TERM=xterm && export TERM\n" % host login_msg = "clear;echo -e '\\033[32mLogin %s done. Enjoy it.\\033[0m'\n" % host # Make a ssh connection