Pārlūkot izejas kodu

hermes bootstrapping hinzugefügt

Ralf Beckesch 18 stundas atpakaļ
vecāks
revīzija
126f89679b
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14 0
      dot_bashrc.d/applications/hermes-bootstrap.sh

+ 14 - 0
dot_bashrc.d/applications/hermes-bootstrap.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+scriptname=$(basename ${BASH_SOURCE[0]})
+scriptdirname=$(dirname ${BASH_SOURCE[0]})
+
+# In ~/.local/share/chezmoi/setup.sh oder ~/.bashrc.d/hermes.sh
+if command -v hermes >/dev/null 2>&1; then
+  # auto_load nur setzen wenn noch nicht vorhanden
+  if ! hermes config get skills.auto_load --json 2>/dev/null | grep -q rechner-setup; then
+    hermes config set skills.auto_load '["rechner-setup"]'
+    debug "hermes: skill 'rechner-setup' automatisch laden konfiguriert."
+    return
+  fi
+  debug "hermes: skill 'rechner-setup' wird bereits automatisch geladen."
+fi