Hello,

> Le 7 janv. 2025 à 21:06, Greg Reagle <greg.rea...@umbc.edu> a écrit :
> 
> You might be interested in abbreviations which has a man page called abbr, or 
> see   https://fishshell.com/docs/current/interactive.html#abbreviations
> 
> The man page for alias notes that it is a wrapper for functions.  See 
> https://fishshell.com/docs/current/language.html#defining-aliases

I already have read that. My question was really this one: is it fine to use 
‘function’ as a mean to define what could have been a simple abbreviation.

For example:

function wget --description 'alias wget=wget 
--hsts-file="$XDG_DATA_HOME/wget-hsts"'
    command wget --hsts-file="$XDG_DATA_HOME/wget-hsts" $argv
end

Or

abbr -a wget 'wget --hsts-file="$XDG_DATA_HOME/wget-hsts"’ 

Which one is okay/preferred ?

Thank you

_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to