Fish Shell - can't find where "la" is defined as "ls -la"

On both my Mac and Ubuntu when I type "la" in Fish Shell I receive output identical to that from "ls -la". I thought I might have defined it as a function. However, I can not find "la" being defined as a alias, abbr, or function.

I've checked .config/fish/functions, fish.prompt.fish, config.fish, which and the Fish Documentation and Commands.

What have I missed? Any thoughts on where "la" could be defined?

1 Answer

The type command is your friend for this type of question:

$ type la
la is a function with definition
# Defined in /usr/local/share/fish/functions/la.fish @ line 4
function la --description 'List contents of directory, including hidden files in directory using long format' ls -lah $argv
end

That tells me la is a standard function included with the fish distribution. Fish also includes a ll function that does ls -lh.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like