spcd/cd/__init__.py

15 lines
265 B
Python
Raw Normal View History

2024-04-26 22:45:27 +02:00
#! /usr/bin/env python3
2024-04-26 21:58:35 +02:00
import os
import sys
def install_commands():
2024-04-26 22:38:23 +02:00
os.symlink(__file__, f'/usr/local/bin/cd-list-environment')
2024-04-26 21:58:35 +02:00
if __name__ == '__main__':
2024-04-26 22:59:01 +02:00
command, *_ = sys.argv
2024-04-26 23:08:10 +02:00
command = os.path.basename(command)
2024-04-26 21:58:35 +02:00
print(f'command: {command}')