Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

init

Output shell initialization script.

Usage

scuv init <shell>

Arguments

ArgumentRequiredDescription
shellYesShell type: bash, zsh, fish, powershell (alias: pwsh)

Setup

Add to your shell configuration:

# Bash (~/.bashrc)
eval "$(scuv init bash)"

# Zsh (~/.zshrc)
eval "$(scuv init zsh)"
# Fish (~/.config/fish/config.fish)
scuv init fish | source
# PowerShell ($PROFILE)
Invoke-Expression (& scuv init powershell | Out-String)

Features Enabled

  • Auto-activation when entering directories with .scuv-version
  • Tab completion for commands, environments, and options
  • Wrapper function for activate/deactivate/use

Examples

scuv init bash                  # Output bash init script
scuv init zsh                   # Output zsh init script
scuv init fish                  # Output fish init script
scuv init powershell            # Output PowerShell init script