Crates.io | qali |
lib.rs | qali |
version | 0.5.1 |
source | src |
created_at | 2022-08-16 02:07:53.973262 |
updated_at | 2023-05-02 12:06:42.927073 |
description | QALI: Quick ALIasing in the terminal |
homepage | https://github.com/JettChenT/qali |
repository | https://github.com/JettChenT/qali |
max_upload_size | |
id | 646278 |
size | 62,016 |
Quick Aliasing
QALI can...
brew tap JettChenT/qali
brew intall qali
download the latest release of your platform, unzip, and move q
and qali
binaries to your bin
folder (usually /usr/local/bin)
A Rust installation is required
cargo install qali
To run the QALI on a windows machine without encoding errors, use windows terminal.
q.exe
works...
but qali.exe
somehow gets detected as a trojan virus (I wish I know how to make one (>_<)
This can be solved by allowing the "virus" in windows defender.
Luckily, qali.exe
is not required for simple actions such as setting and executing an alias.
This installs two separate binaries : q
and qali
.
The command q
is meant for actions with the highest usage frequency, such as setting and alias or executing a command.
The command qali
is meant as a companion allowing for subcommands and more functionality without influencing the namespace in q
which is set reserved completly by the users.
q --help
qali --help
q -s hi "echo hi"
q -s hi hello.sh
(EXPERIMENTAL) (Works iff your shell installation has the name "sh")q -s hi hello.py
(EXPERIMENTAL) (Works iff your python command has the name "python")q -s hi https://beta.sayhello.so
Example: set gs
as git status
q -s gs "git status"
Example: set cc
to cargo check
locally
q -s cc "cargo check" -m local
Set p
as python
if p
doesn't exist
q p python
Set hi
to ./hi.py
with qali
qali set hi ./hi.py
Method 1: q
Method 2: qali select
Example: execute git status
q gs
Execute python --version
(As of now, use --
when executing a command to stop flags meant for the program being parsed as flags for qali itself.)
q -- p --version
qali list
Alternatively, you can set q -s ls "qali list"
to shorten this.
Example: remove gs
as git status
:
qali remove gs
Alternatively, you can set q -s rm "qali remove"
to shorten this.