From ec1d0fb2b4cc94976aeb77fd8a78d96c58f79bd6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 18 Feb 2019 22:49:13 +0000 Subject: [PATCH] etc/profile.d/functions --- etc/profile.d/functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 58bcf33a..6d4eb239 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -692,6 +692,14 @@ password_create() { echo } +if ! type which > /dev/null; then + +which() { + type "$1" +} + +fi + #unset _which_cache _which_cache="" which_cache() { -- 2.47.3