I've got a function defined in my fish shell:
function cl --wraps=cd cd $argv && ls -l --color=auto end
man function, the
--wraps option "causes the function to inherit completions from the given wrapped command."
However, when I type
cl and start to tab-complete, I'm shown options which include non-directories (like .c files). However, when I type
cd and then tab-complete, I'm only shown directories.
Did I define my function incorrectly?