This script checks your code stats of the current dir. If previous stats are stored, they could be compared to them.
Requires tokei, you could install it using:
- Debian/Ubuntu:
apt install tokei - Mac:
brew install tokei
Create an alias in your ~/.*rc (.bashrc, .zshrc, etc) file.
- Open the shell config file with your favorite editor, for example:
nano ~/.zshrc. - If the script is stored at
~/code_stats.sh, addalias stats='~/code_stats.sh'to the end of the file~/.zshrc. - Save changes.
- Reinitialize the shell environment with
source ~/.zshrc. - Test your command
stats -h.