spcd/cd/__init__.py
Marc Beninca 0fc4690cd1
Some checks failed
/ job (push) Failing after 7s
sorted
2024-04-27 00:06:41 +02:00

14 lines
330 B
Python

import os
COMMANDS_PREFIX = 'cd-'
def cd_list_environment():
for variable, value in sorted(os.environ.items()):
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}'))