From 8ea765c3dbd5a1f579f70cf70c0671d5485ddbd8 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sat, 19 Oct 2013 21:28:26 +0200 Subject: [PATCH] added hostname to lish prompt and some fixes --- linspector/frontends/lish.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/linspector/frontends/lish.py b/linspector/frontends/lish.py index d8cd146..a50a27e 100644 --- a/linspector/frontends/lish.py +++ b/linspector/frontends/lish.py @@ -22,10 +22,12 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . """ -from linspector.frontends.frontend import Frontend import os -from shlex import split as shsplit +import socket from cmd import Cmd +from shlex import split as shsplit + +from linspector.frontends.frontend import Frontend __version__ = "0.2" @@ -140,7 +142,7 @@ class LishCommander(Exit, ShellCommander, LogCommander): super(LishCommander, self).__init__() - self.prompt = "\033[94m:\033[0m " + self.prompt = "\033[94m:\033[0m " self.interface = linspectorInterface