Inital Comit Upload Config Files
This commit is contained in:
14
scripts/ai-stuff/ai-command.sh
Executable file
14
scripts/ai-stuff/ai-command.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
source "$HOME/.config/hypr/scripts/ai-stuff/ollama-common.sh"
|
||||
|
||||
PROMPT=$(wofi --dmenu --prompt "Linux Command")
|
||||
[ -z "$PROMPT" ] && exit 0
|
||||
|
||||
FULL_PROMPT="Gib ausschließlich genau einen Linux-Befehl zurück, ohne Erklärungen, ohne Markdown, ohne Codeblock. Aufgabe: $PROMPT"
|
||||
CMD=$(ask_ollama "$FULL_PROMPT" | head -n 1)
|
||||
|
||||
kitty --title "AI Command" bash -lc "cat <<'EOF'
|
||||
$CMD
|
||||
EOF
|
||||
echo
|
||||
read -n 1 -s -r -p 'Taste drücken zum Schließen...'"
|
||||
Reference in New Issue
Block a user