DEV Community

Discussion on: What's your most used shortcut?

Collapse
pixelastic profile image
Tim Carry

Let's see...
cat ~/.history | cut -d ';' -f2 | sort | uniq -c | sort -nr | head gives me my most used commands.

In there I have the classic alias for git status, git diff with colors, going back to the repo root.

But my favorites are those small hacks to type even less characters. I added one-letter aliases to some of the most used commands: l for ls, c for cat, v for vim, f for fd, g for rg, w for which, y for yarn, etc