2
0

2 Commity ae95f9ca4b ... 658369c4be

Autor SHA1 Správa Dátum
  Ralf Beckesch 658369c4be Merge branch 'master' of git.beckesch.it:beckesch/dotfiles 1 mesiac pred
  Ralf Beckesch ad144970c9 added time measurment in debug mode 1 mesiac pred

+ 17 - 0
dot_bashrc.d/150-applications.sh

@@ -7,7 +7,24 @@ bashrcd_dir=~/.bashrc.d
 applications_dir=$bashrcd_dir/applications
 
 for i in $applications_dir/*sh; do
+
 	debug "include '$i'"
+	if [ -n "$DEBUG" ]; then		
+		start_ns=$(date +%s%N)
+	fi
+
 	. $i
+
+	if [ -n "$DEBUG" ]; then
+		end_ns=$(date +%s%N)
+		elapsed_ns=$((end_ns - start_ns))
+		elapsed_s=$(awk -v ns="$elapsed_ns" 'BEGIN {printf "%.9f", ns / 1000000000}')
+	fi
+
+
+	debug "\n\t---\n\t--- Dauer: '$i' \n\t---"
+	debug '\t---\t'$(printf '%s s (%d ns)\n' "$elapsed_s" "$elapsed_ns")
+	debug '\t---'
+
 done
 

+ 0 - 0
dot_bashrc.d/applications/devpod.sh → dot_bashrc.d/applications/devpod.sh-noop


+ 0 - 0
dot_bashrc.d/applications/docker-sandbox.sh → dot_bashrc.d/applications/docker-sandbox.sh-noop


+ 6 - 1
dot_bashrc.d/applications/hermes-bootstrap.sh → dot_bashrc.d/applications/hermes-bootstrap.sh-noop

@@ -4,9 +4,14 @@ 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
+
+
+  eval "$(hermes completion bash)"
   # auto_load nur setzen wenn noch nicht vorhanden
+  debug "hermes setup takes to long... nothing done!"
+  return
   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 config set skills.auto_load '["rechner-setup"]'
     debug "hermes: skill 'rechner-setup' automatisch laden konfiguriert."
     return
   fi

+ 0 - 0
dot_bashrc.d/applications/kubernetes.sh → dot_bashrc.d/applications/kubernetes.sh-noop


+ 1 - 1
dot_bashrc.d/applications/synthing.sh

@@ -4,5 +4,5 @@ scriptdirname=$(dirname ${BASH_SOURCE[0]})
 
 if [ -n "$(command -v syncthing)" ]; then
 	debug "Installing 'syncthing' completions"
-	syncthing install-completions
+	eval "$(syncthing install-completions)"
 fi