Trying to set up a shortcut that will allow me to cd into a directory and list the files within in one go
here is what I got so far. My knowledge is limited, this is pretty much just copy and paste from sources online, don't know what I'm doing, but learning in the process:
cdl () {
cd $1
ls . $1
}
it does what I want, but produces an error:
ls: cannot access colorschemes/: No such file or directory
.:
how do I get rid of the error message?