Installation
Welcome to the IntelliShell installation guide. Getting IntelliShell running on your system involves two main steps:
- Install the Binary: Place the
intelli-shellexecutable on your machine so you can run it. - Configure Shell Integration: Update your shell's profile (e.g.,
~/.bashrc,~/.zshrc) to enable the interactive keybindings (ctrl+space, etc.).
This guide covers the recommended automatic installation and alternative manual methods.
Method 1: Automatic Installation (Recommended)
This is the fastest and easiest way to get started. The installer script automatically detects your OS and architecture, downloads the correct binary, and sets up the shell integration for you.
Note: The installer script will attempt to update all detected shell profiles. If you prefer to handle shell configuration manually, you can set the
INTELLI_SKIP_PROFILE=1environment variable before running the script.
Linux & macOS
Run the following command in your terminal:
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/install.sh | sh
Windows
Prerequisites:
- The Microsoft Visual C++ Redistributable is required.
-
For PowerShell users: You may need to allow script execution first and then run the installer:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser irm https://raw.githubusercontent.com/lasantosr/intelli-shell/main/install.ps1 | iex -
For POSIX-like shell users (Git Bash, WSL, etc.): Same script as for Linux & macOS:
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/install.sh | sh
Method 2: Manual Installation
These methods are for users who prefer more control or cannot run remote scripts. If you install manually, you must also configure your shell integration to enable the hotkeys (see the "Updating Profile Files" section below).
Option A: From Source
If you have the Rust toolchain installed, you can build and install the binary directly from crates.io:
LIBSQLITE3_FLAGS="-DSQLITE_ENABLE_MATH_FUNCTIONS" cargo install intelli-shell --locked
Option B: From Pre-compiled Binaries
You can also install pre-built binaries without compiling them from source.
-
With
cargo-binstall:cargo binstall intelli-shell --locked -
From GitHub Releases:
- Go to the latest release page.
- Download the archive (
.tar.gzor.zip) for your operating system and architecture. - Extract the
intelli-shellexecutable. - Move it to a directory included in your system's
PATH(e.g.,/usr/local/binor~/.local/bin).
Updating Profile Files
Important: This step is handled automatically by the installer script. You only need to do this if you installed IntelliShell manually (e.g., with Cargo) or if you used the
INTELLI_SKIP_PROFILE=1option with the script.
To enable the interactive hotkeys, you must add a line to your shell's configuration file that sources the IntelliShell initialization script.
Click here for shell-specific instructions
-
Bash: Add to
~/.bashrcor~/.bash_profileeval "$(intelli-shell init bash)" -
Zsh: Add to
~/.zshrceval "$(intelli-shell init zsh)" -
Fish: Add to
~/.config/fish/config.fishintelli-shell init fish | source -
Nushell: Add to your Nushell config file (find it with
$nu.config-path)mkdir ($nu.data-dir | path join "vendor/autoload") intelli-shell init nushell | save -f ($nu.data-dir | path join "vendor/autoload/intelli-shell.nu") -
PowerShell: Add to your profile (find it with
$Profile)intelli-shell init powershell | Out-String | Invoke-Expression
Customizing Keybindings
You can override the default keybindings by setting environment variables in your shell's profile file before the line that sources the IntelliShell init command.
INTELLI_SEARCH_HOTKEY: Overrides the defaultctrl+spacehotkey for searching commands.INTELLI_BOOKMARK_HOTKEY: Overrides the defaultctrl+bhotkey to bookmark a command.INTELLI_VARIABLE_HOTKEY: Overrides the defaultctrl+lhotkey for replacing variables.INTELLI_FIX_HOTKEY: Overrides the defaultctrl+xhotkey for fixing commands.INTELLI_SKIP_ESC_BIND=1: Prevents IntelliShell from binding theesckey to clear the current line in the terminal.
For keybinding syntax, refer to your shell's documentation (
bindkeyfor Zsh,bindfor Bash). For example, to change the search hotkey in Bash, addexport INTELLI_SEARCH_HOTKEY=\\C-tto your.bashrc.
Verify Your Installation
After installing and configuring your shell, open a new terminal session to ensure the changes are loaded. You can verify that the binary is working by running:
intelli-shell --version
If the command is found and the hotkeys work, you are ready to go!
Let's move on to Key Concepts.