From 0f1de0871327f29c437e3cb0e99c48123892e453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Sun, 26 Dec 2021 23:29:58 +0100 Subject: [PATCH] fix(gnu-utils): always reapply GNU coreutils on `rehash` --- plugins/gnu-utils/gnu-utils.plugin.zsh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/gnu-utils/gnu-utils.plugin.zsh b/plugins/gnu-utils/gnu-utils.plugin.zsh index 539e7fe4d..5b8f71c8a 100644 --- a/plugins/gnu-utils/gnu-utils.plugin.zsh +++ b/plugins/gnu-utils/gnu-utils.plugin.zsh @@ -73,11 +73,6 @@ function hash() { } function rehash() { - if [[ "$*" =~ "-f" ]]; then - builtin rehash "$@" - __gnu_utils - else - builtin rehash "$@" - fi + builtin rehash "$@" + __gnu_utils } -