Created
April 12, 2014 05:31
-
-
Save offlinemark/10520225 to your computer and use it in GitHub Desktop.
"Path Enumerator" - same thing as the bash one liner below; looks through your $PATH for commands that match a substring
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 penum --description "enumerates $PATH looking for commands that partially match first parameter" | |
for each in $PATH | |
printf "\n$each\n---\n" | |
ls -l $each | grep $argv[1] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment