0f1de0871327f29c437e3cb0e99c48123892e453

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

fix(gnu-utils): always reapply GNU coreutils on `rehash`

Diff

 1diff --git a/plugins/gnu-utils/gnu-utils.plugin.zsh b/plugins/gnu-utils/gnu-utils.plugin.zsh
 2index 539e7fe4db89855de80c836375a8a17ebc83522a..5b8f71c8a0596d6e32c122638c369fe757e85d05 100644
 3--- a/plugins/gnu-utils/gnu-utils.plugin.zsh
 4+++ b/plugins/gnu-utils/gnu-utils.plugin.zsh
 5@@ -73,11 +73,6 @@ function hash() {
 6 }
 7 
 8 function rehash() {
 9-  if [[ "$*" =~ "-f" ]]; then
10-    builtin rehash "$@"
11-    __gnu_utils
12-  else
13-    builtin rehash "$@"
14-  fi
15+  builtin rehash "$@"
16+  __gnu_utils
17 }
18-