terminatorrc support

This commit is contained in:
Chris Jones 2008-02-24 20:29:25 +00:00
commit aa8fcdd75d
1 changed files with 12 additions and 0 deletions

View File

@ -91,8 +91,20 @@ class TerminatorTerm:
'mouse_autohide' : True, '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 = {} matches = {}
def __init__ (self, terminator, profile = None, command = None): def __init__ (self, terminator, profile = None, command = None):
self.defaults['profile_dir'] = self.defaults['_profile_dir']%(self.defaults['gt_dir']) self.defaults['profile_dir'] = self.defaults['_profile_dir']%(self.defaults['gt_dir'])