bashare a little different:
fc -l -i 1 | grep $(date +"%Y-%m-%d") | wc -lYou would think
historywould have done the trick but I couldn't get the timestamps working in
zshso I had to use
fcmeans Fix Command).
bashBash is a little easier but you need to make sure you have
HISTTIMEFORMATset so the
historycommand shows timestamps:
export HISTTIMEFORMAT="%Y-%m-%d "
history | grep $(date +"%Y-%m-%d") | wc -l
HISTTIMEFORMAT was not set before then you will need to be patient because your commands before the time that you set the
HISTTIMEFORMAT will be timestamped with the time that you set it so it will probably like you have executed more commands than you have today.