Quick Aliasing
QALI can... - Shorten long & complex commands - Act as a namespace for your custom scripts (stop worrying about conflicting names with system commands!) - Make you type less - Reduce your mental workload
Note: QALI is not gauranteed to work in Windows.
download the latest release of your platform, unzip, and move q
and qali
binaries to your /usr/local/bin
folder
shell
brew tap JettChenT/qali
brew intall qali
shell
cargo install qali
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)q -s hi hello.py
(EXPERIMENTAL)q -s hi https://beta.sayhello.so
(EXPERIMENTAL)Example: set gs
as git status
shell
q -s gs "git status"
Set p
as python
if p
doesn't exist
shell
q p python
Set hi
to ./hi.py
with qali
shell
qali set hi ./hi.py
Method 1: q
Method 2: qali select
Example: execute git status
shell
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.)
shell
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.