Troubleshooting
gs: command not found
Section titled “gs: command not found”Symptom:
$ 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:
qwik init bash --install # or zsh, fish…source ~/.bashrcqwik doctor # should report the hook as installedUntil 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.
Aliases vanished from a new terminal
Section titled “Aliases vanished from 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).
qwik picked the wrong shell
Section titled “qwik picked the wrong shell”In WSL, Git Bash, or SSH setups, parent-process detection can misfire. Force it:
export QWIK_SHELL=bash # bash, zsh, fish, pwsh, cmd, nu, xonshqwik doctor # verify detection nowSee 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.
Recovering from a bad edit or import
Section titled “Recovering from a bad edit or import”Every destructive operation writes a timestamped backup. To find them:
ls ~/.config/qwik/backups/ # or $QWIK_CONFIG_DIR/qwik/backups/qwik doctor # points at the latest valid backupRestore the easy way — qwik undo:
qwik undo --list # valid backups, newest firstqwik undo # diff + confirm, then restore the newestqwik undo --to 20260815-1418 # restore a specific backupAlternatively copy a backup over aliases.toml (with qwik closed), or
use qwik import <backup> to merge.
Duplicate names / shadowing confusion
Section titled “Duplicate names / shadowing confusion”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:
qwik init bash | grep "gs="Diagnosing with doctor
Section titled “Diagnosing with doctor”qwik doctor checks the shell in use, hook installation, store health,
name conflicts, and the sync repo in one pass:
qwik doctorRun it first whenever something is off — most issues fall into one of: hook not installed, shell misdetected, store version mismatch.
Still stuck?
Section titled “Still stuck?”- Search GitHub issues
- Include the output of
qwik doctorandqwik --versionin any report