From: Nicolas Boisselier Date: Mon, 18 Feb 2019 22:49:13 +0000 (+0000) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=ec1d0fb2b4cc94976aeb77fd8a78d96c58f79bd6;p=nb.git etc/profile.d/functions --- 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() {