I've got a function defined in my fish shell:
function cl --wraps=cd
cd $argv && ls -l --color=auto
end
According to 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?
functions cl
does it show thewraps
argument? What doesfish --version
show?--wraps=cd
. The version of fish is 3.1.2.