From e03bd5484400bb900c2fea194897643507cee6e6 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 6 Jun 2024 14:41:06 +0200 Subject: [PATCH] cat,known --- cd/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cd/__init__.py b/cd/__init__.py index 5b608cf..7970a1a 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -77,6 +77,12 @@ def browse(root: str): shut(root) +def cat(file: str): + open(file) + print(fs.read_file_text(file)) + shut(file) + + def install_commands(path): step('Install commands') user = '/usr/local/bin' @@ -113,6 +119,7 @@ def set_ssh(*arguments): if ssh_hosts: fs.write(known, ssh_hosts) os.chmod(known, 0o400) + cat(known) # browse(ssh)