1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

granted: use assume directly

The `.assume-wrapped` path is not available since the merge of

    https://github.com/NixOS/nixpkgs/pull/347816

Use assume directly instead.

PR #5994
This commit is contained in:
Willi Carlsen 2024-10-23 14:07:07 +02:00 committed by Robert Helgesson
parent 0a0b1b18bd
commit 454e8d6b15
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ in {
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
function assume() {
export GRANTED_ALIAS_CONFIGURED="true"
source ${package}/bin/.assume-wrapped "$@"
source ${package}/bin/assume "$@"
unset GRANTED_ALIAS_CONFIGURED
}
'';

View file

@ -19,7 +19,7 @@
'export GRANTED_ALIAS_CONFIGURED="true"'
assertFileNotRegex \
home-files/.zshrc \
'source @granted@/bin/.assume-wrapped "$@"'
'source @granted@/bin/assume "$@"'
assertFileNotRegex \
home-files/.zshrc \
'unset GRANTED_ALIAS_CONFIGURED'

View file

@ -18,7 +18,7 @@
'export GRANTED_ALIAS_CONFIGURED="true"'
assertFileContains \
home-files/.zshrc \
'source @granted@/bin/.assume-wrapped "$@"'
'source @granted@/bin/assume "$@"'
assertFileContains \
home-files/.zshrc \
'unset GRANTED_ALIAS_CONFIGURED'