Browse Source

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

Marc Cornellà 2 years ago
parent
commit
0f1de08713
1 changed files with 2 additions and 7 deletions
  1. 2 7
      plugins/gnu-utils/gnu-utils.plugin.zsh

+ 2 - 7
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
 }
-