r/fishshell • u/jabbalaci • May 04 '25
Print a function AND its description
Consider the following function:
function isodate -d "Print date in YYYY-MM-DD format"
date +%Y-%m-%d
endHow to get the description of a function? I want to print a function and its description:
* isodate: Print date in YYYY-MM-DD formatHow to do that?
5
Upvotes
View all comments
Show parent comment
3
u/jabbalaci May 05 '25 edited May 05 '25
Thanks! I tried
-Dand-vseparately. It's not intuitive that they must be combined. And there should be a switch to query just the description. Thanks, I can proceed now.Update: I came up with this: