Skip to content

Commit

Permalink
Switch to sys.platform so Clipea can tell if you're on Linux or macOS
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
dave1010 committed Dec 3, 2023
1 parent a87cfb5 commit e3a8cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clipea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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)

0 comments on commit e3a8cb3

Please sign in to comment.