Description
deja is a predictive suggestion tool for zsh. It shows ghost text in your prompt as you type, based on your command history, and you can accept it or press Tab to cycle through ranked alternatives. It replaces zsh-autosuggestions, so remove that plugin before enabling deja. It learns which commands you tend to run together, such as a test command after a build command, and it uses fuzzy matching, so a short pattern like gco can find git checkout. Suggestions are also ranked by your current directory and by how often and how recently you ran each command. Command history is stored in a local SQLite database and is not sent to a server. One background process serves all your terminal windows. It supports zsh on macOS and Linux, including WSL on Windows, with release binaries for Intel and AMD and for ARM. It can be installed from Homebrew core or with a curl script.…
Highlights
- Ghost-text suggestions as you type in zsh
- Learns command sequences
- Fuzzy matching, such as gco for git checkout
- Ranks by directory, frequency and recency
- Local SQLite history with no server
- Tab cycles through ranked alternatives
Ratings & Reviews
No ratings yet
Be the first to rate Deja.
People also visit
Deja FAQ
What is deja?
A zsh plugin that predicts your next command and shows it as inline ghost text, which you can accept from the prompt.
How is it different from zsh-autosuggestions?
It replaces that plugin and adds sequence prediction, fuzzy matching, directory awareness and a Tab picker. Remove zsh-autosuggestions before enabling deja.
Does it send my history anywhere?
No. Command history is kept in a local SQLite database and is not sent to a server.
Which systems are supported?
zsh on macOS and Linux, including WSL on Windows, with release binaries for amd64 and arm64.
How do I install it?
Install from Homebrew core, or use the one-line installer, which imports your history, configures your zshrc and restarts zsh.
What are the best Deja alternatives?
Popular alternatives to Deja include Zshistory, Tabby and 0Cody. See all Deja alternatives



