Like IntelliSense, but for shells!
IntelliShell acts like a bookmark store for commands, so you don't have to keep your history clean in order to be able
to find something useful with ctrl + R
.
It currently works on Bash, Zsh and Fish and should be compatible with most Linux, Windows and MacOS.
Install the binaries:
sh
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/install.sh | bash
Bookmark your first command by typing it on a terminal and using ctrl + b
(optional) Run intelli-shell fetch
to download commands from tldr
Hit ctrl + space
to begin the journey!
Remember to bookmark some commands or fetch them after the installation!
sh
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/install.sh | bash
After installing it using bash, it should work in any supported shell.
powershell
New-Item -Path $env:APPDATA\IntelliShell\Intelli-Shell\bin -Type Directory
Invoke-WebRequest -UseBasicParsing -URI "https://github.com/lasantosr/intelli-shell/releases/latest/download/intelli-shell-x86_64-pc-windows-msvc.zip" -OutFile .\intelli-shell.zip
Expand-Archive -Path intelli-shell.zip -DestinationPath $env:APPDATA\IntelliShell\Intelli-Shell\bin
Remove-Item intelli-shell.zip
$Path = [Environment]::GetEnvironmentVariable("PATH", "User")
if ($Path -NotLike "*IntelliShell*") {
$Path = $Path + [IO.Path]::PathSeparator + "$env:APPDATA\IntelliShell\Intelli-Shell\bin"
}
After installing it using PowerShell, it should also work in cmd.
To install from source you'll need to have Rust installed, which is recommended to be installed using rustup.
sh
cargo install intelli-shell --locked
Linux considerations
To include hotkey integrations with current line, you'll need to download the source script also:
sh
mkdir -p ~/.local/share/intelli-shell
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/intelli-shell.sh > ~/.local/share/intelli-shell/intelli-shell.sh
Or, if using fish:
sh
mkdir -p ~/.local/share/intelli-shell
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/intelli-shell.fish > ~/.local/share/intelli-shell/intelli-shell.fish
After that, you should edit your ~/.bashrc
, ~/.zshrc
or ~/.bash_profile
to source it:
sh
source ~/.local/share/intelli-shell/intelli-shell.sh
Or, if using fish you should edit ~/.config/fish/config.fish
:
sh
source ~/.local/share/intelli-shell/intelli-shell.fish
You can view supported actions by running intelli-shell -h
. Most used standalone commands are:
intelli-shell fetch [category]
to fetch tldr commands and store them.
[category] can be skipped or a valid folder from tldr's pagesintelli-shell export
to export user-bookmarked commands (won't export tldr's commands)intelli-shell import user_commands.txt
to import commands into the user categoryWindows users, as hotkeys are not enabled, will also need those:
intelli-shell search
to search for stored commandsintelli-shell save "my command"
to save a new commandHotkeys are only available on Linux:
ctrl + b
bookmark currently typed commandctrl + space
show suggestions for current linectrl + l
replace labels of currently typed commandesc
clean current line, this binding can be skipped if INTELLI_SKIP_ESC_BIND=1
Note: When navigating items, selected suggestion can be deleted with ctrl + d
You can customize key bindings using environment variables: INTELLI_SAVE_HOTKEY
, INTELLI_SEARCH_HOTKEY
and INTELLI_LABEL_HOTKEY
You might want to have a look at Marker which is pretty similar but requires Python to be installed on your system.
IntelliShell is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.