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!
To install using prebuilt binaries:
sh
curl -sSf https://raw.githubusercontent.com/lasantosr/intelli-shell/main/install.sh | bash
If your platform is not supported, you can also install using cargo, which is recommended to be installed using rustup.
sh
cargo install intelli-shell --locked
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 categoryctrl + 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.