Skip to content
/ Doual Public

DouAl - Alias management tool for Unix-like systems (MacOS, Linux)

License

Notifications You must be signed in to change notification settings

douxxu/Doual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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

About

DouAl - Alias management tool for Unix-like systems (MacOS, Linux)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published