Ver código fonte

fixed bug in application loader

Ralf Beckesch 1 mês atrás
pai
commit
8b88ac7eb4

+ 3 - 5
dot_bashrc.d/150-applications.sh

@@ -19,12 +19,10 @@ for i in $applications_dir/*sh; do
 		end_ns=$(date +%s%N)
 		elapsed_ns=$((end_ns - start_ns))
 		elapsed_s=$(awk -v ns="$elapsed_ns" 'BEGIN {printf "%.9f", ns / 1000000000}')
+		debug "\n\t---\n\t--- Dauer: '$i' \n\t---"
+		debug '\t---\t'$(printf '%s s (%d ns)\n' "$elapsed_s" "$elapsed_ns")
+		debug '\t---'
 	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
 

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

@@ -5,7 +5,7 @@ scriptdirname=$(dirname ${BASH_SOURCE[0]})
 
 if [ -n "$(command -v glow)" ]; then
 	debug "Loading 'glow' completion."
-	env "$(glow completion bash)"
+	eval "$(glow completion bash)"
 fi