From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTVmH-0003PG-Jo for guix-patches@gnu.org; Sun, 02 Dec 2018 12:43:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTVhu-0000a6-6a for guix-patches@gnu.org; Sun, 02 Dec 2018 12:39:02 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:54037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTVhu-0000a2-3s for guix-patches@gnu.org; Sun, 02 Dec 2018 12:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTVht-0003kS-Sk for guix-patches@gnu.org; Sun, 02 Dec 2018 12:39:01 -0500 Subject: [bug#33466] [PATCH 2/2] repl: Add 'colorized' and 'readline' support. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20181122144228.31573-1-go.wigust@gmail.com> <20181122144228.31573-2-go.wigust@gmail.com> <874lc4vqjx.fsf@gnu.org> <871s71rn25.fsf@gmail.com> Date: Sun, 02 Dec 2018 18:38:48 +0100 In-Reply-To: <871s71rn25.fsf@gmail.com> (Oleg Pykhalov's message of "Sat, 01 Dec 2018 23:48:02 +0300") Message-ID: <87y397ltg7.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Oleg Pykhalov Cc: 33466@debbugs.gnu.org Hi Oleg, Oleg Pykhalov skribis: > From 95b95b24107084baf03e9635280a8c3136b2a356 Mon Sep 17 00:00:00 2001 > From: Oleg Pykhalov > Date: Thu, 22 Nov 2018 17:24:04 +0300 > Subject: [PATCH] repl: Load user's initialization file. > > * guix/scripts/repl.scm (guix-repl): Load user's initialization file. [...] > (set-current-module user-module) > + (when (file-exists? %guile-initialization-file) > + (load %guile-initialization-file)) Rather: (and=3D> (getenv "HOME") (lambda (home) (when (file-exists? =E2=80=A6) =E2=80=A6))) Otherwise if HOME is undefined simply loading (guix scripts repl) will cause an error. Thanks, Ludo=E2=80=99.