spcd/cd/__init__.py

15 lines
265 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: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__':
2024-04-26 20:59:01 +00:00
command, *_ = sys.argv
2024-04-26 21:08:10 +00:00
command = os.path.basename(command)
2024-04-26 19:58:35 +00:00
print(f'command: {command}')