Created
December 23, 2019 09:54
-
-
Save akumbhani66/d2103ce4d61a9130b0ab1020bc076f80 to your computer and use it in GitHub Desktop.
Alias that will execute ls command immediately after cd command. To save time and one command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put following function in to your .zshrc and ls -a will going to execute right away after cd. | |
function chpwd() { | |
emulate -L zsh | |
ls -a | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment