Last active
September 21, 2018 22:19
-
-
Save leptos-null/b13a16520ebbc47311dbfa8acced6cc1 to your computer and use it in GitHub Desktop.
List which: zsh function to print full information about a command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lw() { | |
for ARG in "$@" | |
do | |
WHICH_RESULT=$(which "$ARG") && { | |
[[ -e "$WHICH_RESULT" ]] && { | |
l "$WHICH_RESULT" | |
continue | |
} | |
} | |
echo "$WHICH_RESULT" | |
done | |
} |
Author
leptos-null
commented
Sep 16, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment