articlesCLI aliases to boost your productivity
February 15, 2022

CLI aliases to boost your productivity

Over the years, I've been putting together a list of terminal aliases. I rely on them every day, and I figured it might also be helpful to others!

cli-aslias articles

As I'm a front-end developer, some of these aliases will not speak to our backender or DevOps friends. Feel free to adapt these to your liking!

Bash / Zsh

You can add these aliases to your .bashrc or .zshrc file. Or check out my full .zshrc

You don't know what shell you're rocking or how to edit your configuration? Run this command in your favourite terminal: echo $SHELL. It will output /bin/bash or /bin/zsh, which means you'll have to respectively edit ~/.bashrc or ~/.zshrc.

Open code editors

Navigate and view files (using exa)

Remove a folder and its content:

Use everyday tools in a keystroke (or two)

Git

You can add the examples below to the [alias] section of your .gitconfig. Or you can check my full .gitconfig.

Bonus

1. Fig.io

Fig.io is not an alias, more of an autocompletion tool on steroids. You can set it up and enjoy the built-in features: npm, git, docker, ssh, etc.

And if that's not enough for you, you can even write your own shortcuts.

2. Yet Another Dotfiles Manager (yadm)

Now that you have these shiny aliases set up, it would be a shame to lose them or have to reconfigure them one by one on a new computer, right?

Enters yadm: a simple tool that makes it easy to share your dotfiles. If you know git, setting up yadm will be pretty straightforward. Soon enough, you'll feel at $HOME anywhere in a matter of seconds!