Installing sbsh on Linux¶
Install sbsh on Linux systems (Ubuntu, Debian, RHEL, CentOS, etc.).
Quick Install¶
One-liner — auto-detects arch, resolves the latest release, and installs sbsh plus the sb hardlink:
Override defaults via env vars: SBSH_VERSION=vX.Y.Z (pin a tag), SBSH_INSTALL_PREFIX=/path/bin (default /usr/local/bin), SBSH_REPO=owner/repo (forks), SBSH_SKIP_CHECKSUM=1. Pass --check to run prerequisite checks only (curl -fsSL https://sbsh.io/install.sh | bash -s -- --check), or --help for usage.
For air-gapped or pinned-release installs, see Manual Installation below.
Verify Installation¶
Autocomplete Setup¶
Bash¶
Add to ~/.bashrc:
Reload your shell:
Zsh¶
Add to ~/.zshrc:
Reload your shell:
Alternative Installation Methods¶
Manual Installation¶
Download and install manually:
# Download
wget https://github.com/eminwux/sbsh/releases/download/v0.6.0/sbsh-linux-amd64
# Make executable
chmod +x sbsh-linux-amd64
# Install
sudo mv sbsh-linux-amd64 /usr/local/bin/sbsh
sudo ln -f /usr/local/bin/sbsh /usr/local/bin/sb
User-local Installation¶
Install to ~/bin (add to PATH):
mkdir -p ~/bin
curl -L -o ~/bin/sbsh https://github.com/eminwux/sbsh/releases/download/v0.6.0/sbsh-linux-amd64
chmod +x ~/bin/sbsh
ln -f ~/bin/sbsh ~/bin/sb
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH="$HOME/bin:$PATH"
Troubleshooting¶
Permission Denied¶
If you get permission errors, ensure the binary is executable:
Command Not Found¶
If sbsh is not found after installation:
- Verify the binary is in your PATH:
which sbsh - Check
/usr/local/binis in PATH:echo $PATH - Reload your shell:
source ~/.bashrcorsource ~/.zshrc
PTY Issues¶
If you encounter PTY-related errors:
Next Steps¶
- Getting Started - Your first terminal session
- Prerequisites - System requirements