The best way to download alias for fast setup.
Step 1: Using any of the following tools, send a GET
request to alias alchemy domain with/without q (default all)
and sys (default: linux)
query parameters to download the composite alias file.
- Linux Path:
~/.alias.sh
- Windows Path:
%USERPROFILE%\\.alias.cmd
Other supported tools
HTTPie | http -d [url] > [filepath] |
Invoke-WebRequest | Invoke-WebRequest [url] -O [filepath] |
aria2 | aria2c -c [url] > [filepath] |
Postman | GET [url] | Save to File |
Any Tool | [tool] [header: {'User-Agent': 'alal'}] [url] > [filepath] |
Mirrors:
Step 2: Configure our system to auto-run the alias file whenever a terminal is launched. (This is just a first-time setup)
Linux Setup
Assuming we saved the file at ~/.alias.sh
, run the following command
# Append `Executing Command (source)` in the shell's configuration profile.
## Bash
grep -qxF 'source ~/.alias.sh' ~/.bashrc || echo 'source ~/.alias.sh' >> ~/.bashrc
## ZSH
grep -qxF 'source ~/.alias.sh' ~/.zshrc || echo 'source ~/.alias.sh' >> ~/.zshrc
Windows Setup
Assuming we saved the file at %USERPROFILE%\.alias.cmd
, run the following command in Administrator Mode
REM Adding `AutoRun` key (string) in Windows registry and setting the value to the file path.
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor" /f /v "AutoRun" /t REG_SZ /d "%USERPROFILE%\.alias.cmd"
Step 3: After creating the alias file and configuring our system, another operation that can be performed is appending the alias file using the >>
operator. It is perhaps the reason why this project exists.
# Using Direct Command
curl -L "alias-alchemy.ra101.dev?q=kubernetes" >> ~/.alias.sh
# Using Alias
fetch-alias kubernetes >> ~/.alias.sh
Python (py) Aliases
Python (py) Aliases
Linux Aliases (.python.alias.sh
)
# Python Aliases
Windows Aliases (.python.alias.cmd
)
# Python Aliases
Docker (dc) Aliases
Docker (dc) Aliases
Linux Aliases (.docker.alias.sh
)
# Docker Aliases
Windows Aliases (.docker.alias.cmd
)
# Docker Aliases
Django (dj) Aliases
Django (dj) Aliases
Linux Aliases (.django.alias.sh
)
# Django Aliases
Windows Aliases (.django.alias.cmd
)
# Django Aliases