Skip to content

Windows

xcsh can be run on Windows using npm or Windows Subsystem for Linux (WSL).

Install xcsh globally using npm:

Terminal window
npm install -g @robinmordasiewicz/f5xc-xcsh

Then run:

Terminal window
xcsh version

For the best experience on Windows, use Windows Subsystem for Linux (WSL):

  1. Install WSL with Ubuntu:

    Terminal window
    wsl --install
  2. Open Ubuntu and follow the Script installation method:

    Terminal window
    curl -fsSL https://robinmordasiewicz.github.io/f5xc-xcsh/install.sh | sh

Enable tab completion in PowerShell:

Terminal window
xcsh completion powershell | Out-String | Invoke-Expression

To make completions permanent, add the above command to your PowerShell profile:

Terminal window
# Open your profile for editing
notepad $PROFILE
# Add this line:
xcsh completion powershell | Out-String | Invoke-Expression

Ensure npm’s global bin directory is in your PATH:

Terminal window
npm config get prefix

Add the \bin subdirectory of that path to your system PATH.

If PowerShell blocks scripts, adjust the execution policy:

Terminal window
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser