DouAl is a simple and efficient alias manager that allows you to create, list, and delete aliases for your command line. It works on macOS and most Linux distributions.
To use DouAl, you need the following:
Base Requirements:
Packages:
Note: All these packages are available on npmjs.org and can be installed with the command npm install <package-name>
.
To install DouAl, follow these steps:
npm install -g DouAl
You can create an alias using the following command:
dal create <initial_command> <alias> [-a <arguments>] [-r <true|false>]
Options:
-a, --args <arguments>
: Arguments for the initial command-r, --root <true|false>
: Run as root
Example:
dal create "ls -la" ll -a "--color=auto"
You can remove an alias using the following command:
dal remove <alias>
Example:
dal remove ll
You can list all aliases using the following command:
dal list
To execute an alias, simply type the alias name in the terminal:
<alias>
Example:
ll
dal create "ls -la" ll -a "--color=auto"
Output:
Starting DouAl.js v1.0.0
[i] Creating or updating alias ll...
[✔] Alias ll added to ~/.zshrc
[✔] Alias ll created or updated successfully.
[i] Please reload your terminal for the changes to take effect.
dal remove ll
Output:
Starting DouAl.js v1.0.0
[i] Do you want to remove the alias ll? ([Y]/n): y
[i] Removing alias ll...
[✔] Alias ll removed from ~/.zshrc
[✔] Alias ll removed successfully.
[i] Please reload your terminal for the changes to take effect.
dal list
Output:
Starting DouAl.js v1.0.0
Alias: ll, Command: ls -la, Options: {"InitialArgs":"","RunAsRoot":false}
This project is licensed under the MIT License.
Made with <3 by douxx