Introduction
qwik is a friendly CLI alias manager. You register aliases once in a single store, and qwik makes them available as real shell commands on every shell you use — bash, zsh, fish, PowerShell, cmd, Nushell, and Xonsh.
The problem
Section titled “The problem”Raw shell aliases live scattered across ~/.bashrc, ~/.zshrc, and
PowerShell’s $PROFILE. They don’t travel between machines or shells, they
can’t accept arguments safely, and a mistake like alias gco='git checkout $1'
fails silently when you forget the argument.
What qwik does
Section titled “What qwik does”- You register aliases with
qwik add:Terminal window qwik add gs "git status" - You install a one-line shell hook with
qwik init --install - Every new shell session regenerates shell-native aliases from the store
- You type
gsjust like a normal alias — because it is one
The store is a single human-readable TOML file, safe to edit by hand, with rolling backups and atomic writes.
Two ways to run any alias
Section titled “Two ways to run any alias”| Way | Example | When to use |
|---|---|---|
| Native | gs |
Daily use after one-time shell hook setup |
| Via qwik | qwik -r gs |
Scripts, CI, restricted shells, or pre-setup |
Both share the same store and substitution engine — behavior is
identical. The qwik -r form works with no hook installed at all, which
makes it ideal for non-interactive environments:
qwik -r gco main # in a script or CI jobWhen to reach for qwik
Section titled “When to reach for qwik”- You use multiple machines and want one alias set everywhere — see Sharing & Syncing
- You want aliases that take arguments safely, with defaults and clear errors — see Alias Templates & Arguments
- You jump between bash, zsh, fish, or PowerShell and don’t want to maintain four rc files
- You manage team alias sets — publish a repo and teammates attach it as a read-only overlay
- You’re unsure what an alias does —
qwik show gsprints its full metadata
The mental model
Section titled “The mental model”Think of qwik as a registry plus a renderer:
- The registry is
~/.config/qwik/aliases.toml— names, commands, tags, groups, usage stats - The renderer is the shell hook. On each new shell it calls
qwik init <shell>internally and generates nativealias/function/defdefinitions from the store
Because native commands are regenerated from the store, edits made anywhere
(qwik edit, qwik rename, an import, a sync pull) appear in every new
shell session automatically — no rc-file spelunking.