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.
- Vim has aliases?Kusalananda– Kusalananda ♦2022-01-21 14:52:26 +00:00Commented Jan 21, 2022 at 14:52
- The leader mappings.user446002– user4460022022-01-21 15:07:00 +00:00Commented Jan 21, 2022 at 15:07
- 1You could always declare 'alias bankruptcy' - comment them all out and see which ones you miss, and uncomment/rename them as you go.mattb– mattb2022-01-21 18:09:18 +00:00Commented Jan 21, 2022 at 18:09
Add a comment |
1 Answer
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.