PetacommPetacomm
petacomm.ioUser ToolsPetaShell
User Tool · Enhanced Shell

A smarter terminal
for Linux power users.

PetaShell enhances your existing bash, zsh or fish shell with syntax highlighting, smart completions, git-aware prompt, fuzzy history search and inline AI suggestions from Petacomm Easy.

Layered on your existing shell
PetaShell doesn't replace bash or zsh — it layers on top. Your existing aliases, functions and history are preserved. Add it to your .zshrc or .bashrc in one line.
Download PetaShell Documentation ›
#PetaShell #SmartTerminal #AIAssisted
bashzsh · fish
AIInline Suggestions
GitAware Prompt
GPL‑3Open Source
What Is PetaShell

Your terminal.
Significantly smarter.

PetaShell is a shell enhancement layer — not a new shell. It adds real-time syntax highlighting as you type, context-aware tab completion, a git-aware prompt that shows branch status, staged files and ahead/behind counts, and fuzzy history search with Ctrl+R.

If you have Petacomm Easy installed, PetaShell can suggest the right command when you're unsure — inline, in your prompt, before you even type. Type ?? followed by your question to ask Easy directly from the prompt.

  • Syntax highlighting — commands, flags, strings, errors highlighted as you type
  • Smart completion — context-aware, learns from your usage patterns
  • Git-aware prompt — branch, status, staged, ahead/behind in the prompt
  • Fuzzy history — Ctrl+R with fuzzy search across all history
  • Inline AI — type ?? to ask Petacomm Easy from the prompt
  • Auto-suggestions — ghost-text completion from history
  • Alias expansion — see what your alias expands to before running
petashell — bash enhanced v1.1
# Git-aware prompt with branch status
petacomm main +2 ↑1 ~/projects $

# Syntax highlighting as you type
petacomm main ~/projects $ git commit -m "feat: add syntax highlighting"

# Auto-suggestion from history (ghost text)
petacomm main ~/projects $ git commit -m "last commit message"

# Inline AI: type ?? to ask Easy
petacomm main ~/projects $ ?? how do I undo the last commit
Easy → git reset --soft HEAD~1
press Tab to insert, Enter to run

# Fuzzy history (Ctrl+R)
bck-i-search: docker ps · 3 matches

Features

Every feature
your shell was missing.

Syntax Highlighting
Commands, flags, paths, strings and errors are colour-coded in real time as you type — before you press Enter.
Git-aware Prompt
Branch name, staged files count, untracked files, ahead/behind origin — all visible in your prompt at a glance.
Fuzzy History
Ctrl+R opens fuzzy search across your entire shell history. Type any fragment — PetaShell finds the match.
Inline AI via ??
Type ?? and your question. Petacomm Easy returns the right command — press Tab to insert it.
Smart Completion
Context-aware completions for git, docker, kubectl, systemctl, apt, npm and hundreds of other tools.
Drop-in Enhancement
One line in your .zshrc or .bashrc. All existing aliases, history and functions preserved.

Installation

Install PetaShell.

bash
$ sudo apt install petashell # or dnf, yay

# Add to your shell config
# For zsh:
$ echo 'source /usr/share/petashell/init.zsh' >> ~/.zshrc

# For bash:
$ echo 'source /usr/share/petashell/init.bash' >> ~/.bashrc

# Reload
$ source ~/.zshrc
bashzshfish

Keyboard shortcuts

ShortcutActionDescription
Ctrl+RhistoryFuzzy history search
TabcompleteSmart context-aware completion
→ / EndacceptAccept the ghost-text auto-suggestion
Ctrl+TfilesFuzzy file search in current directory
Alt+CcdFuzzy cd into any subdirectory
??AI askAsk Petacomm Easy inline
Ctrl+X EeditorEdit current command in $EDITOR
UbuntuDebianArchRHELAlpine+12 more

Your terminal. But smarter.

Drop-in shell enhancement. One line to install, zero compromises on your existing setup.

Download PetaShellDocumentation ›