From f4321af68bc0f04ea90b65401dbfe03cd04c0289 Mon Sep 17 00:00:00 2001 From: Nicolas Valcarcel Date: Tue, 19 Feb 2008 19:50:10 -0500 Subject: [PATCH] added suport for ~/.terminatorrc file --- terminator | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/terminator b/terminator index c398063f..e05ca154 100755 --- a/terminator +++ b/terminator @@ -91,8 +91,20 @@ class TerminatorTerm: 'mouse_autohide' : True, } + if os.path.exists(pwd.getpwuid(os.getuid())[5] + "/.terminatorrc"): + f = open(pwd.getpwuid(os.getuid())[5] + "/.terminatorrc") + config = f.readlines() + f.close() + + for line in config: + line = line.strip() + if line: + (key,value) = line.split("=") + defaults[key.strip()]=value.strip() + matches = {} + def __init__ (self, terminator, profile = None, command = None): self.defaults['profile_dir'] = self.defaults['_profile_dir']%(self.defaults['gt_dir'])