Improvements
This commit is contained in:
parent
726463c3ab
commit
589b6fa2f4
9 changed files with 55 additions and 56 deletions
|
@ -1,9 +1,5 @@
|
|||
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 "${@}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue