spcd/cd/__init__.py

15 lines
263 B
Python
Raw Normal View History

2024-04-26 20:45:27 +00:00
#! /usr/bin/env python3
2024-04-26 19:58:35 +00:00
import os
import sys
def install_commands():
2024-04-26 20:34:06 +00:00
print('PATH:', os.environ['PATH'])
2024-04-26 20:38:23 +00:00
os.symlink(__file__, f'/usr/local/bin/cd-list-environment')
2024-04-26 19:58:35 +00:00
if __name__ == '__main__':
command, _ = sys.argv
print(f'command: {command}')