spcd/cd/__init__.py
Marc Beninca db42d33130
Some checks failed
/ job (push) Failing after 7s
()
2024-04-26 23:58:06 +02:00

14 lines
309 B
Python

import os
COMMANDS_PREFIX = 'cd-'
def cd_list_environment():
for variable, value in os.environ:
print(variable, value)
def install_commands(path):
user = '/usr/local/bin'
for command in ['list-environment']:
os.symlink(path, os.path.join(user, f'{COMMANDS_PREFIX}{command}'))