Skip to content

Commit

Permalink
feat: alias to get frequently typed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Aug 6, 2024
1 parent 08530dc commit 0a9b031
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .shells/.all/interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0a9b031

Please sign in to comment.