~ruther/guix-config

ref: dc830d6862b588f128de0d37cb84a3f2c0367c26 guix-config/repl-init.scm -rw-r--r-- 921 bytes
dc830d68 — Rutherther feat: Add nix profile shell sripts to /etc/profile.d 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(use-modules
 (guix)
 (gnu system)
 (guix store)
 (guix monads)
 (srfi srfi-1)
 (ice-9 readline))

(define os (load "config.scm"))

(cond ((false-if-exception (resolve-interface '(ice-9 readline)))
       =>
       (lambda (module)
         ;; Enable completion and input history at the REPL.
         ((module-ref module 'activate-readline))))
      (else
       (display "Consider installing the 'guile-readline' package for
convenient interactive line editing and input history.\n\n")))

      (unless (getenv "INSIDE_EMACS")
        (cond ((false-if-exception (resolve-interface '(ice-9 colorized)))
               =>
               (lambda (module)
                 ;; Enable completion and input history at the REPL.
                 ((module-ref module 'activate-colorized))))
              (else
               (display "Consider installing the 'guile-colorized' package
for a colorful Guile experience.\n\n"))))