spcd/cd/__init__.py

8 lines
170 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']:
os.symlink(path, os.path.join(user, f'cd-{command}')