From 3792d7a0014bf11aafc72afc8dbca040cf66eba8 Mon Sep 17 00:00:00 2001 From: Dave Hulbert Date: Sun, 3 Dec 2023 21:02:05 +0000 Subject: [PATCH] Switch to sys.platform so Clipea can tell if you're on Linux or macOS Fixes #19 --- clipea/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clipea/__init__.py b/clipea/__init__.py index e4d96a5..c164570 100644 --- a/clipea/__init__.py +++ b/clipea/__init__.py @@ -2,6 +2,7 @@ 📎🟢 Like Clippy but for the CLI. A blazing fast AI helper for your command line """ import os +import sys from clipea import utils, cli @@ -13,7 +14,7 @@ ) ENV: dict[str, str] = { "shell": cli.get_shell(), - "os": os.name, + "platform": sys.platform, "editor": os.getenv("EDITOR", "nano"), } SYSTEM_PROMPT: str = utils.read_file(SYSTEM_PROMPT_FILE) + str(ENV)