Skip to content

Instantly share code, notes, and snippets.

@offlinemark
Created April 12, 2014 05:31
Show Gist options
  • Save offlinemark/10520225 to your computer and use it in GitHub Desktop.
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
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