Added modiciation from a parallel project

This commit is contained in:
Gal Szkolnik 2022-10-23 18:10:30 -04:00
parent e14d5f3566
commit 278be5a6c6
24 changed files with 492 additions and 143 deletions

View file

@ -1,5 +1,9 @@
alias which-command="type -fP "
function which-command() {
local ANSWER=$(type -t "${@}") || return $?
[[ $ANSWER == "function" ]] && printf "function " && type "${@}" | tail +2 && return
[[ $ANSWER == "alias" ]] && {
alias "${@}"
}
type -fP "${@}"
}