mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
tests: fix zsh-session-variables test
This commit is contained in:
committed by
Austin Horstman
parent
5a21f4819e
commit
6b1b122c1b
@@ -1,4 +1,4 @@
|
||||
{ config, lib, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
@@ -13,6 +13,6 @@
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.zshenv
|
||||
assertFileContent home-files/.zshenv ${./session-variables.zshenv}
|
||||
assertFileContent $(normalizeStorePaths home-files/.zshenv) ${./session-variables.zshenv}
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Environment variables
|
||||
. "/home/hm-user/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
. "/nix/store/00000000000000000000000000000000-hm-session-vars.sh/etc/profile.d/hm-session-vars.sh"
|
||||
|
||||
# Only source this once
|
||||
if [[ -z "$__HM_ZSH_SESS_VARS_SOURCED" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user