1.2.1 • Published 5 months ago

doual v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

🚀 DouAl - Alias Manager

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.

📀 Requirements

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>.

🖥 Installation

To install DouAl, follow these steps:

  1. Ensure you have Node.js and npm installed on your device.
  2. Open a terminal.
  3. Install DouAl with npm:
npm install -g DouAl

⚡️ Using DouAl

Create an Alias

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"

Remove an Alias

You can remove an alias using the following command:

dal remove <alias>

Example:

dal remove ll

List All Aliases

You can list all aliases using the following command:

dal list

Execute an Alias

To execute an alias, simply type the alias name in the terminal:

<alias>

Example:

ll

📝 Example Usage

Creating an Alias

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.

Deleting an Alias

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.

Listing All Aliases

dal list

Output:

Starting DouAl.js v1.0.0
Alias: ll, Command: ls -la, Options: {"InitialArgs":"","RunAsRoot":false}

📝 License

This project is licensed under the MIT License.


Made with <3 by douxx

1.2.1

5 months ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago