👩💻 Join our community of thousands of amazing developers!
Almost everybody does an ls after they cd into a folder. So why not get your shell to automatically do it? The simple way # Well, you might know the simple way. Just change cd to do cd and ls. cd() { builtin cd "$@";ll;} The grown up way (in zsh) # Well, even though the previous one works well for most cases, there might be some situations in which it will not work. The cases in which it might not work is when you don't actually use cd change dir, but some other command. Here is the code that...