0

I would like to know which aliases I use most often, in both zsh and vim, so I can rename them to have more or fewer letters depending on the use. And also to remove aliases I never use, because I feel like I have too many.

3
  • Vim has aliases? Commented Jan 21, 2022 at 14:52
  • The leader mappings. Commented Jan 21, 2022 at 15:07
  • 1
    You could always declare 'alias bankruptcy' - comment them all out and see which ones you miss, and uncomment/rename them as you go. Commented Jan 21, 2022 at 18:09

1 Answer 1

2

This command will show the most used commands:

sort ~/.zsh_history | uniq -c | sort -n | tail 

You could use tail -50 to see the top 50 commands. By default it's limited to 10.

As to which ones are not used, please create a new question. This is a whole different problem.

You must log in to answer this question.