~abcdw/rde-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] gnu: home-services: shellutils: Add home-bash-direnv-service-type

Nikita Domnitskii
Details
Message ID
<162480825421.8.17850510108440211400.9235118@domnitskii.me>
DKIM signature
pass
Download raw message
Patch: +16 -1
From: Nikita Domnitskii <nikita@domnitskii.me>

---
 gnu/home-services/shellutils.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/home-services/shellutils.scm b/gnu/home-services/shellutils.scm
index 6e8c14e..921588c 100644
--- a/gnu/home-services/shellutils.scm
+++ b/gnu/home-services/shellutils.scm
@@ -12,7 +12,8 @@

  #:export (home-zsh-plugin-manager-service-type
	    home-zsh-autosuggestions-service-type
	    home-zsh-direnv-service-type))
	    home-zsh-direnv-service-type
            home-bash-direnv-service-type))

(define (add-zsh-plugins-load-command packages)
  (home-zsh-extension
@@ -75,3 +76,17 @@ to improve perfomance.")))
   (default-value #f)
   (description "Enable Direnv integration for Zsh.")))

(define home-bash-direnv-service-type
  (service-type
   (name 'home-bash-direnv)
   (extensions
    (list
     (service-extension
      home-profile-service-type
      (const (list direnv)))
     (service-extension
      home-bash-service-type
      (const (home-bash-extension
              (bashrc (list "eval \"$(direnv hook bash)\"")))))))
   (default-value #f)
   (description "Enable Direnv integration for bash.")))
-- 
2.32.0
Details
Message ID
<87o8bqr1oe.fsf@trop.in>
In-Reply-To
<162480825421.8.17850510108440211400.9235118@domnitskii.me> (view parent)
DKIM signature
missing
Download raw message
Nikita Domnitskii <nikita@domnitskii.me> writes:

> From: Nikita Domnitskii <nikita@domnitskii.me>
>
> ---
>  gnu/home-services/shellutils.scm | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/home-services/shellutils.scm b/gnu/home-services/shellutils.scm
> index 6e8c14e..921588c 100644
> --- a/gnu/home-services/shellutils.scm
> +++ b/gnu/home-services/shellutils.scm
> @@ -12,7 +12,8 @@
>  
>    #:export (home-zsh-plugin-manager-service-type
>  	    home-zsh-autosuggestions-service-type
> -	    home-zsh-direnv-service-type))
> +	    home-zsh-direnv-service-type
> +            home-bash-direnv-service-type))
>  
>  (define (add-zsh-plugins-load-command packages)
>    (home-zsh-extension
> @@ -75,3 +76,17 @@ to improve perfomance.")))
>     (default-value #f)
>     (description "Enable Direnv integration for Zsh.")))
>  
> +(define home-bash-direnv-service-type
> +  (service-type
> +   (name 'home-bash-direnv)
> +   (extensions
> +    (list
> +     (service-extension
> +      home-profile-service-type
> +      (const (list direnv)))
> +     (service-extension
> +      home-bash-service-type
> +      (const (home-bash-extension
> +              (bashrc (list "eval \"$(direnv hook bash)\"")))))))
> +   (default-value #f)
> +   (description "Enable Direnv integration for bash.")))

Thank you for the patch, applied.
Reply to thread Export thread (mbox)