From 9cb4001fa28248bed8ddc4954af3228fc984dd5f Mon Sep 17 00:00:00 2001 From: Spirit Date: Thu, 26 Sep 2024 02:51:05 +0300 Subject: [PATCH] aliases to show visit count --- .bash_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 3fd2345..40ecadf 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -24,3 +24,7 @@ alias commit='git commit -m' alias add='git add' alias pull='git pull --verbose' alias push='git push --verbose' + +# visit count +alias visitors='echo $(($(cat $HOME/visitors | awk -F "," '{print NF-1}') + 1))' +alias visits='echo $(cat $HOME/visits)'