Search code examples
fish

How do I create a function that performs cd then ls in fish?


I have posted the solution as an answer.


Solution

  • Simply add this to your config.fish file:

    function cs
       cd $argv
       ls -ahl
    end