Rev 192 | Rev 206 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# shellcheck shell=sh# Initialization script for bash, sh, mksh and ksh_declare="declare -f"_opt="-f"_shell="$(basename $SHELL)"if [ "$_shell" = "ksh" ] || [ "$_shell" = "mksh" ] || [ "$_shell" = "zsh" ] ; then_declare="typeset -f"_opt=""fiwhich (){(alias; eval ${_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"}export ${_opt} which