⋊> ~ func-description func-description
Gets the description of a function
⋊> ~
Last active
January 5, 2016 21:44
-
-
Save cmbankester/02f5f9ffd71032a4c074 to your computer and use it in GitHub Desktop.
Fish Shell Function Description Function
This file contains hidden or 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 func-description --description 'Gets the description of a function' | |
printf "%s" (functions $argv[1] | head -n 1 | sed -E "s|.*'(.*)'.*|\1|") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment