doual
v1.2.0
Published
DouAl - Alias management tool for Unix-like systems (MacOS, Linux)
Downloads
1
Readme
🚀 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:
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.