[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: home: zsh: Load environment when running via ssh
From: |
guix-commits |
Subject: |
06/08: gnu: home: zsh: Load environment when running via ssh |
Date: |
Sun, 17 Sep 2023 09:37:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d2a751c14eac664e32c79613f09cf146504d433f
Author: Saku Laesvuori <saku@laesvuori.fi>
AuthorDate: Thu Aug 17 10:38:48 2023 +0300
gnu: home: zsh: Load environment when running via ssh
* gnu/home/services/shells.scm (zsh-file-zshenv): Add snippet to source
/etc/profile when running via ssh.
(zsh-get-configuration-files): Always add .zshenv as it is never empty.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/home/services/shells.scm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm
index 7960590e7c..9dd56f634a 100644
--- a/gnu/home/services/shells.scm
+++ b/gnu/home/services/shells.scm
@@ -183,7 +183,8 @@ another process for example)."))
(mixed-text-file
"zshenv"
(zsh-serialize-field config 'zshenv)
- (zsh-serialize-field config 'environment-variables)))
+ (zsh-serialize-field config 'environment-variables)
+ "[ -n \"$SSH_CLIENT\" ] && source /etc/profile"))
(define (zsh-file-zprofile config)
(mixed-text-file
@@ -209,9 +210,7 @@ source ~/.profile
(define (zsh-get-configuration-files config)
`((".zprofile" ,(zsh-file-by-field config 'zprofile)) ;; Always non-empty
- ,@(if (or (zsh-field-not-empty? config 'zshenv)
- (zsh-field-not-empty? config 'environment-variables))
- `((".zshenv" ,(zsh-file-by-field config 'zshenv))) '())
+ (".zshenv" ,(zsh-file-by-field config 'zshenv)) ;; Always non-empty
,@(if (zsh-field-not-empty? config 'zshrc)
`((".zshrc" ,(zsh-file-by-field config 'zshrc))) '())
,@(if (zsh-field-not-empty? config 'zlogin)
- branch master updated (af08de2b2d -> 5abc40d7f7), guix-commits, 2023/09/17
- 01/08: tests: childhurd: Add missing module imports., guix-commits, 2023/09/17
- 02/08: services: syncthing: Ensure that service runs after mounting home directories., guix-commits, 2023/09/17
- 04/08: transformations: tuned-package: Use target on cross-compile., guix-commits, 2023/09/17
- 05/08: gnu: spdlog: Update to 1.12.0., guix-commits, 2023/09/17
- 06/08: gnu: home: zsh: Load environment when running via ssh,
guix-commits <=
- 08/08: gnu: cockatrice: add wayland dependency, guix-commits, 2023/09/17
- 03/08: services: dhcp-client-configuration: Allow provision override., guix-commits, 2023/09/17
- 07/08: gnu: file-systems: Add variable %base-live-file-systems., guix-commits, 2023/09/17