Skip to content

Troubleshooting

Symptom:

Terminal window
$ gs
-bash: gs: command not found
$ qwik ls
...gs is right there in the list...

Cause: the alias exists in the store but the shell hook isn’t installed — the store and your shell’s live commands are separate things until the hook generates them.

Fix:

Terminal window
qwik init bash --install # or zsh, fish…
source ~/.bashrc
qwik doctor # should report the hook as installed

Until then, qwik -r gs always works with no setup.

Check it: after --install, look for the qwik hook block at the end of your rc file (~/.bashrc, ~/.zshrc, …). If your shell session predates the install, source the rc file or open a new terminal.

The hook regenerates on new sessions. If you just ran qwik rm, qwik disable, or qwik import, the current session keeps its old generated definitions. Open a new terminal (or re-source the rc file).

In WSL, Git Bash, or SSH setups, parent-process detection can misfire. Force it:

Terminal window
export QWIK_SHELL=bash # bash, zsh, fish, pwsh, cmd, nu, xonsh
qwik doctor # verify detection now

See Shell Integration.

“refuses to load” / store version errors

Section titled ““refuses to load” / store version errors”

If the store file’s schema is newer than your qwik understands (e.g. you downgraded or synced from a machine with a newer qwik), qwik refuses to load it.

Fix: upgrade qwik (pipx upgrade qwik). Migration is forward-only — see Store & Backups.

Every destructive operation writes a timestamped backup. To find them:

Terminal window
ls ~/.config/qwik/backups/ # or $QWIK_CONFIG_DIR/qwik/backups/
qwik doctor # points at the latest valid backup

Restore the easy way — qwik undo:

Terminal window
qwik undo --list # valid backups, newest first
qwik undo # diff + confirm, then restore the newest
qwik undo --to 20260815-1418 # restore a specific backup

Alternatively copy a backup over aliases.toml (with qwik closed), or use qwik import <backup> to merge.

A user alias with the same name shadows an overlay alias; native commands come from the most recent hook generation. To see what will actually exist in a new session:

Terminal window
qwik init bash | grep "gs="

qwik doctor checks the shell in use, hook installation, store health, name conflicts, and the sync repo in one pass:

Terminal window
qwik doctor

Run it first whenever something is off — most issues fall into one of: hook not installed, shell misdetected, store version mismatch.

  • Search GitHub issues
  • Include the output of qwik doctor and qwik --version in any report