From 051c087d7187d705e98015e8654dd20f66ce23d4 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Sun, 8 May 2022 18:52:33 +0200 Subject: scripts: build: Highlight the current system with --list-systems. * guix/scripts/build.scm (list-systems): Highlight it. --- guix/scripts/build.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'guix') diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm index a09c54451f..4383a399a0 100644 --- a/guix/scripts/build.scm +++ b/guix/scripts/build.scm @@ -21,6 +21,7 @@ (define-module (guix scripts build) #:use-module (guix ui) + #:use-module (guix colors) #:use-module (guix scripts) #:autoload (guix import json) (json->scheme-file) #:use-module (guix store) @@ -342,8 +343,15 @@ (define (list-systems) "Print the available systems." (display (G_ "The available systems are:\n")) (newline) - (format #t "~{ - ~a ~%~}" - (sort (systems) string