fish; clear line hack

master
d42 2019-08-06 15:08:59 +02:00
parent 70d29ee1c7
commit 2f23869a55
1 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
import dbus
from os.path import basename
from xml.etree import ElementTree
IDLE_PROCESS = ["zsh", "bash"]
IDLE_PROCESS = ["zsh", "bash", "fish"]
KONSOLE_PATH = 'org.kde.konsole'
@ -30,5 +30,6 @@ if __name__ == "__main__":
object_path = "/Sessions/{id}".format(id=x)
session = session_bus.get_object(KONSOLE_PATH, object_path)
foreground_id = session.foregroundProcessId()
import pdb; pdb.set_trace()
if is_shell(foreground_id):
session.runCommand("exit")
session.runCommand("\15exit")