Like many developers, I use the terminal on a daily basis.
I actually use 2 different terminals: the one embedded in VScode and iTerm2 (I’m on macOS). Although this post contains the word bash, I don’t use it directly. I use zsh with ohmyzsh. If you never heard about it before, it supercharges bash and adds more interactivity. It also gives me interesting feedbacks like the branch and working directory I am currently in.
By the way, if you like the theme I’m using, feel free to steal my dotfiles. Also, I won’t be covering the Git part as I already did in this blog post.
Cheatsheet
How many “.js” files does this folder contains?
How many lines of code in this folder?
Find all occurrences
Example: list where “console.log” is used in the codebase.
How big is my folder?
Example: list where “console.log” is used in the codebase.
What about Vim?
I mostly use Vim for Git commits. It can also be handy when your IDE struggle to open 10 0000 lines long files. To pimp my vim™, I installed something called SpaceVim. It adds fancy things like a file explorer and the syntax color.
Aliases
Everything verbose!
Since you’re there, I aliased all my filesystem commands to make them more verbose.
RAM consumption
🏴☠️ Change your mac address
This one is not really tech-related. I mostly use this one in airports/coffee shops to renew mac address (and get illimited access).
🙃 The Russian Roulette
If you like to live on the edge… but please, be smart! And don’t run commands you don’t know the effects of!
Bonus #1: Tree
I use tree to display directories as trees. It very cool to write documentation.
Bonus #2: Gtop
Gtop is a system monitoring dashboard. Typing Gtop on my keyboard is usually quicker than opening the activity monitor (for some unknown reasons I always struggle to find it).
Bonus #3: cloc
If you have npm and npx installed you can use cloc like this:
About the author
Hey, I'm Maxence Poutord, a passionate software engineer. In my day-to-day job, I'm working as a senior front-end engineer at Orderfox. When I'm not working, you can find me travelling the world or cooking.
Follow me on Bluesky