Skip to content

Quick Start

This guide gets you from zero to a working native alias in about two minutes.

  1. Install qwik.

    Terminal window
    pipx install qwik

    See Installation for the uv alternative.

  2. Register your first alias.

    Terminal window
    qwik add gs "git status"

    qwik checks the name for conflicts (builtins, existing binaries) before saving — see Conflict Detection.

  3. Test it immediately, no setup needed.

    Terminal window
    qwik -r gs

    The -r flag runs any alias through qwik’s engine — handy in scripts and CI, and your safety net before the hook is installed.

  4. Install the shell hook.

    Terminal window
    # bash
    qwik init bash --install && source ~/.bashrc
    # zsh
    qwik init zsh --install && source ~/.zshrc

    This appends a small hook to your rc file (with a timestamped backup) that regenerates native aliases on every new shell session.

  5. Run it as a native command.

    Terminal window
    gs

    qwik ls now shows gs with a native command and a Used count of 1.

Make it interesting: an alias with arguments

Section titled “Make it interesting: an alias with arguments”
Terminal window
qwik add gco "git checkout {1}"
gco main # → git checkout main
gs --short # → git status --short (extra args appended)

Placeholders like {1} turn aliases into mini-functions with validated arguments and default values. Full details in Alias Templates & Arguments.

Run qwik edit gs — it opens a TOML snippet in your $EDITOR. Save and quit to apply. The change is live in every new shell session automatically.

Terminal window
qwik list # pretty table: name, command, group, tag, usage
qwik show gs # full metadata for one alias