mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +02:00
Use powerline.conf as it is supposed to be used
This commit is contained in:
parent
fb769d7297
commit
4a3f098f22
@ -160,6 +160,13 @@ def main(attempts=3):
|
|||||||
'PYTHONPATH': os.environ.get('PYTHONPATH', ''),
|
'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:
|
try:
|
||||||
p = ExpectProcess(
|
p = ExpectProcess(
|
||||||
lib=lib,
|
lib=lib,
|
||||||
@ -175,7 +182,7 @@ def main(attempts=3):
|
|||||||
# Request verbose logging just in case
|
# Request verbose logging just in case
|
||||||
'-v',
|
'-v',
|
||||||
# Specify configuration file
|
# Specify configuration file
|
||||||
'-f', os.path.abspath('powerline/bindings/tmux/powerline.conf'),
|
'-f', conf_file,
|
||||||
# Run bash three times
|
# Run bash three times
|
||||||
'new-session', 'bash --norc --noprofile -i', ';',
|
'new-session', 'bash --norc --noprofile -i', ';',
|
||||||
'new-window', 'bash --norc --noprofile -i', ';',
|
'new-window', 'bash --norc --noprofile -i', ';',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user