mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-01-05 12:06:46 +01:00
fix(command-not-found): pass arguments correctly in NixOS (#10381)
This commit is contained in:
parent
5e8905b4b2
commit
9a02515c7c
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ fi
|
||||||
# NixOS: https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found
|
# NixOS: https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found
|
||||||
if [[ -x /run/current-system/sw/bin/command-not-found ]]; then
|
if [[ -x /run/current-system/sw/bin/command-not-found ]]; then
|
||||||
command_not_found_handler() {
|
command_not_found_handler() {
|
||||||
/run/current-system/sw/bin/command-not-found -- "$@"
|
/run/current-system/sw/bin/command-not-found "$@"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue