Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built a Linux command alias system that handles my entire workflow, and now I type two characters instead of thirty

Every workflow I run now funnels through the same two keystrokes.

I built a Linux command alias system that handles my entire workflow, and now I type two characters instead of thirty

For years, the author edited their .bashrc file to include shortcuts for frequently used command-line switches, such as ls -la. While these were helpful, the author believed there was more potential in creating aliases. The main barrier to creating more aliases was the need for commands that couldn't benefit from static shortcuts, as they often required specific orders or varying arguments.

To address this, the author created a system where all aliases and functions were tied to functions, allowing access with just two characters. This two-letter command, kb, was named after the author's initials for its speed and ease of recall. The author's alias system proved to be a game-changer, enabling them to perform complex tasks with just two characters, rather than typing out lengthy command sequences.

With a portable .bash_shortcuts file, the author can easily refer to their aliases and functions, even on new machines.

Written by urgent.news from XDA Developers's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at xda-developers.com →

More in Tech

More from Tuesday 3 November →