2024-04-26 21:58:35 +02:00
|
|
|
import os
|
|
|
|
|
2024-04-26 23:55:20 +02:00
|
|
|
COMMANDS_PREFIX = 'cd-'
|
|
|
|
|
|
|
|
|
|
|
|
def cd_list_environment:
|
|
|
|
for variable, value in os.environ:
|
|
|
|
print(variable, value)
|
|
|
|
|
2024-04-26 21:58:35 +02:00
|
|
|
|
2024-04-26 23:24:46 +02:00
|
|
|
def install_commands(path):
|
|
|
|
user = '/usr/local/bin'
|
|
|
|
for command in ['list-environment']:
|
2024-04-26 23:55:20 +02:00
|
|
|
os.symlink(path, os.path.join(user, f'{COMMANDS_PREFIX}{command}'))
|