spcd/cd/__init__.py

8 lines
171 B
Python
Raw Normal View History

2024-04-26 19:58:35 +00:00
import os
2024-04-26 21:24:46 +00:00
def install_commands(path):
user = '/usr/local/bin'
for command in ['list-environment']:
2024-04-26 21:26:40 +00:00
os.symlink(path, os.path.join(user, f'cd-{command}'))