]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 18 Feb 2019 22:49:13 +0000 (22:49 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 18 Feb 2019 22:49:13 +0000 (22:49 +0000)
etc/profile.d/functions

index 58bcf33ab42f8429560be9d3af07218af4876a20..6d4eb239ad2ee6b015d6d1bc00998c0f0dee6a63 100755 (executable)
@@ -692,6 +692,14 @@ password_create() {
        echo
 }
 
+if ! type which > /dev/null; then
+
+which() {
+       type "$1"
+}
+
+fi
+
 #unset _which_cache
 _which_cache=""
 which_cache() {