Use powerline.conf as it is supposed to be used

This commit is contained in:
Foo 2017-04-30 02:19:47 +03:00
parent fb769d7297
commit 4a3f098f22
1 changed files with 8 additions and 1 deletions

View File

@ -160,6 +160,13 @@ def main(attempts=3):
'PYTHONPATH': os.environ.get('PYTHONPATH', ''),
}
conf_path = os.path.abspath('powerline/bindings/tmux/powerline.conf')
conf_line = 'source "' + (
conf_path.replace('\\', '\\\\').replace('"', '\\"')) + '"\n'
conf_file = os.path.realpath(os.path.join(VTERM_TEST_DIR, 'tmux.conf'))
with open(conf_file, 'w') as cf_fd:
cf_fd.write(conf_line)
try:
p = ExpectProcess(
lib=lib,
@ -175,7 +182,7 @@ def main(attempts=3):
# Request verbose logging just in case
'-v',
# Specify configuration file
'-f', os.path.abspath('powerline/bindings/tmux/powerline.conf'),
'-f', conf_file,
# Run bash three times
'new-session', 'bash --norc --noprofile -i', ';',
'new-window', 'bash --norc --noprofile -i', ';',