We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e453ce8 commit 9e3b36cCopy full SHA for 9e3b36c
tmuxp/cli.py
@@ -27,6 +27,8 @@
27
28
logger = logging.getLogger(__name__)
29
30
+VALID_CONFIG_DIR_FILE_EXTENSIONS = ['.yaml', '.yml', '.json']
31
+
32
33
def get_cwd():
34
return os.getcwd()
@@ -327,7 +329,7 @@ def scan_config(config, config_dir=None):
327
329
x
328
330
for x in [
331
'%s%s' % (join(config_dir, config), ext)
- for ext in ['.yaml', '.yml', '.json']
332
+ for ext in VALID_CONFIG_DIR_FILE_EXTENSIONS
333
]
334
if exists(x)
335
@@ -932,4 +934,6 @@ def command_ls():
932
934
tmuxp_dir = Path.home() / '.tmuxp'
933
935
if tmuxp_dir.exists() and tmuxp_dir.is_dir():
936
for f in sorted(tmuxp_dir.iterdir()):
937
+ if f.is_dir() or f.suffix not in VALID_CONFIG_DIR_FILE_EXTENSIONS:
938
+ continue
939
print(f.stem)
0 commit comments