mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +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:
parent
0a0b1b18bd
commit
454e8d6b15
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
'';
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue