Bootstrap Options
The TSI bootstrap installer (tsi-bootstrap.sh) supports several options for customizing the installation.
Usage
curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh -s -- [options]
Or download and run locally:
Options
--repair
Repair or update an existing TSI installation.
curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh -s -- --repair
What it does: - Detects existing installation - Checks for source updates (if source is a git repository, fetches updates) - Rebuilds TSI from updated source - Reinstalls TSI binary and completion scripts - Preserves all data: packages, database, repository, sources
When to use: - TSI binary is corrupted or missing - TSI is outdated and you want to update - TSI stopped working after system updates - You want to rebuild TSI with a different compiler
--prefix PATH
Install TSI to a custom location.
PREFIX=/opt/tsi curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
Or:
curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh -s -- --prefix /opt/tsi
Default: $HOME/.tsi
What it does: - Installs TSI to the specified prefix - Creates directory structure under the prefix - Sets up binaries, completion scripts, and data directories
--help or -h
Show help message.
Environment Variables
You can also use environment variables to configure the installer:
PREFIX
Installation prefix (same as --prefix option).
PREFIX=/opt/tsi curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
TSI_REPO
Custom repository URL (default: https://github.com/PanterSoft/tsi.git).
TSI_REPO=https://github.com/user/fork.git curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
TSI_BRANCH
Branch to use from repository (default: main).
TSI_BRANCH=develop curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
INSTALL_DIR
Temporary directory for downloading and building source (default: $HOME/tsi-install).
INSTALL_DIR=/tmp/tsi-build curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
Examples
Standard Installation
Custom Prefix
PREFIX=/opt/tsi curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
Repair Existing Installation
curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh -s -- --repair
Install from Fork
TSI_REPO=https://github.com/user/fork.git TSI_BRANCH=feature curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh
Combine Options
PREFIX=/opt/tsi curl -fsSL https://raw.githubusercontent.com/PanterSoft/tsi/main/tsi-bootstrap.sh | sh -s -- --repair
After Installation
After installation, add TSI to your PATH:
Or add to your shell profile:
Troubleshooting
Installation Fails
- Check that you have a C compiler:
gcc --versionorclang --version - Check that you have
make:make --version - Verify internet connection for downloading source
Repair Fails
- Check file permissions on installation directory
- Verify C compiler is available
- Check that source repository is accessible
Custom Prefix Issues
- Ensure the prefix directory is writable
- Use absolute paths for the prefix
- Check disk space in the target location