mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Take directory setting from TMUX_CONFIG_DIRECTORY
This commit is contained in:
parent
1f6ed8ef13
commit
95a2bef8d9
@ -10,6 +10,8 @@ import re
|
|||||||
|
|
||||||
TmuxVersionInfo = namedtuple('TmuxVersionInfo', ('major', 'minor', 'suffix'))
|
TmuxVersionInfo = namedtuple('TmuxVersionInfo', ('major', 'minor', 'suffix'))
|
||||||
|
|
||||||
|
TMUX_CONFIG_DIRECTORY = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmux')
|
||||||
|
|
||||||
|
|
||||||
def get_tmux_executable_name():
|
def get_tmux_executable_name():
|
||||||
'''Returns tmux executable name
|
'''Returns tmux executable name
|
||||||
@ -65,7 +67,7 @@ CONFIG_PRIORITY = {
|
|||||||
|
|
||||||
def list_all_tmux_configs():
|
def list_all_tmux_configs():
|
||||||
'''List all version-specific tmux configuration files'''
|
'''List all version-specific tmux configuration files'''
|
||||||
directory = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmux')
|
directory = TMUX_CONFIG_DIRECTORY
|
||||||
for root, dirs, files in os.walk(directory):
|
for root, dirs, files in os.walk(directory):
|
||||||
dirs[:] = ()
|
dirs[:] = ()
|
||||||
for fname in files:
|
for fname in files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user