I'd like to write a bash scipt that would change to target directory and list the contents of new directory, all in one step. It would replace the two commands I constantly use consecutively:
- cd ./some_directory
- ls -al
After executing the script, my current directory would change, and ls -al would show the dir list.
cdl ./some_directory
Is this possible?