bash

Add Commands To The Shell Built-in Commands

Some shell commands are internal built-in commands. This allows them to change shell process states and when they’re internal they can be really fast as they don’t have to load another program. Some machines are dedicated to running a couple of scripts. Adding a command to the built-ins for those can make them all the faster. To enable a bult-in, use the enable command followed by a -f, the path/uri to the binary, and then the name you want it to be called as.

Let’s say we want to call /usr/local/devopsmagic as devopsmagicb, that would be run as follows:

enable -f /usr/local/devopsmagic devopsmagicb

I’m not a big fan of doing this – there’s a reason it’s not common. But when setting up dedicated script machines that need just a little more oomph – I’ve found it useable.