Install Script
Install xcsh on Linux or macOS using the universal install script.
Quick Install
Section titled “Quick Install”curl -fsSL https://robinmordasiewicz.github.io/f5xc-xcsh/install.sh | shWhat the Script Does
Section titled “What the Script Does”- Detects your operating system and architecture
- Downloads the appropriate binary from GitHub releases
- Verifies the checksum for security
- Installs the binary to an appropriate location
- Sets up shell completions for your shell
- Configures your PATH if needed
Installation Locations
Section titled “Installation Locations”With Administrator Access
Section titled “With Administrator Access”- Binary:
/usr/local/bin/xcsh - Completions: System-wide locations
Without Administrator Access
Section titled “Without Administrator Access”- Binary:
~/.local/bin/xcsh - Completions: User directories (
~/.zsh/completions/,~/.local/share/bash-completion/)
Environment Variables
Section titled “Environment Variables”Customize the installation with these environment variables:
| Variable | Description | Default |
|---|---|---|
F5XC_NO_SUDO | Force user-local installation | Detect |
F5XC_INSTALL_DIR | Custom binary location | Auto |
F5XC_VERSION | Specific version to install | Latest |
Example: User-Local Installation
Section titled “Example: User-Local Installation”F5XC_NO_SUDO=1 curl -fsSL https://robinmordasiewicz.github.io/f5xc-xcsh/install.sh | shExample: Specific Version
Section titled “Example: Specific Version”F5XC_VERSION=4.39.0 curl -fsSL https://robinmordasiewicz.github.io/f5xc-xcsh/install.sh | shPost-Installation
Section titled “Post-Installation”After installation, you may need to restart your shell or source your profile:
source ~/.zshrc # or ~/.bashrcVerify the installation:
xcsh versionUninstall
Section titled “Uninstall”To uninstall, remove the binary and completions:
# Remove binaryrm -f ~/.local/bin/xcsh # or /usr/local/bin/xcsh
# Remove completionsrm -f ~/.zsh/completions/_xcshrm -f ~/.local/share/bash-completion/completions/xcshrm -f ~/.config/fish/completions/xcsh.fish