From 0a9b0317347165451d7c9af663aae0754d2a7618 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Tue, 6 Aug 2024 13:41:20 +0000 Subject: [PATCH] feat: alias to get frequently typed commands --- .shells/.all/interactive.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.shells/.all/interactive.sh b/.shells/.all/interactive.sh index a434e0c..7f50950 100755 --- a/.shells/.all/interactive.sh +++ b/.shells/.all/interactive.sh @@ -61,6 +61,9 @@ alias g="git" alias h="history" alias gc="git commit -v " +# Get the list of the most frequently typed commands in the history +alias frequentcommands="history | cut -c 8- | grep git | sort | uniq -c | sort -n -r | head -n 10" + # Detect which `ls` flavor is in use if ls --color >/dev/null 2>&1; then # GNU `ls` colorflag="--color"