mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 09:29:41 +08:00
fix config file location on macOS and fix test
This commit is contained in:
committed by
Austin Horstman
parent
990e5ce679
commit
ed1eb4cfdd
@@ -80,7 +80,7 @@ in
|
||||
let
|
||||
configPath =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
"Library/Preferences/org.IntelliShell.Intelli-Shell"
|
||||
"Library/Application Support/org.IntelliShell.Intelli-Shell"
|
||||
else
|
||||
".config/intelli-shell";
|
||||
in
|
||||
|
||||
@@ -27,13 +27,13 @@
|
||||
let
|
||||
configPath =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
"Library/Preferences/org.IntelliShell.Intelli-Shell"
|
||||
"Library/Application Support/org.IntelliShell.Intelli-Shell"
|
||||
else
|
||||
".config/intelli-shell";
|
||||
in
|
||||
''
|
||||
assertFileExists home-files/${configPath}/config.toml
|
||||
assertFileContent home-files/${configPath}/config.toml \
|
||||
assertFileExists 'home-files/${configPath}/config.toml'
|
||||
assertFileContent 'home-files/${configPath}/config.toml' \
|
||||
${./config.toml}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user