GNU bug report logs - #74180
[PATCH] gnu: add bash-preexec

Previous Next

Package: guix-patches;

Reported by: Javier Olaechea <pirata <at> gmail.com>

Date: Sat, 2 Nov 2024 21:15:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Javier Olaechea <pirata <at> gmail.com>
To: 74180 <at> debbugs.gnu.org
Subject: [bug#74180] [PATCH] gnu: add bash-preexec
Date: Sat, 2 Nov 2024 21:14:17 +0000
[Message part 1 (text/plain, inline)]
Hi,

Attached is a patch to package bash-preexec. It provides hooks that other
programs can use to to register commands to run when one runs a command on
the shell w/o clobbering each other. For example it allows me to use both
direnv and atuin. ej.

(home-environment
 (services
  (list (service home-bash-service-type
                 (home-bash-configuration
                  (bashrc (list (mixed-text-file "source-bash-preexec"
                                                 "source " bash-preexec
"/bin/bash-preexec.sh")
                                (mixed-text-file "eval-direnv"
                                                 "eval \"$(" direnv
"/bin/direnv hook bash)\"")
                                (mixed-text-file
                                 "eval-atuin"
                                 "eval \"$(" atuin-bin "/bin/atuin init
bash --disable-up-arrow)\""))))))))


Cheers





-- 
"I object to doing things that computers can do." — Olin Shivers
[Message part 2 (text/html, inline)]
[0001-gnu-add-bash-preexec.patch (text/x-patch, attachment)]

This bug report was last modified 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.