I have a task that is assisting my scripting...it requires counting the amount of times I use each user defined command in .bash_profile. In other words, if I run on command like something defined as an alias like
pip2install arg1 arg2, I need to count that I ran
Is there a way in linux machines to run a command before any shell script/alias/bash function runs? Like a config file where this can be defined?
I'm OK with counting how many times I run ALL commands (since I can just choose to ignore builtin commands once the UI is built)
Thank you very much