Skip to main content

setup

The proto setup command will setup proto in your current shell by modifying an applicable profile file and appending proto's bin directory to PATH.

$ proto setup

During setup, the following profiles will be searched. To override these, pass the PROTO_SHELL_PROFILE environment variable.

  • All shells
    • ~/.profile
    • PROFILE environment variable
  • Bash
    • ~/.bash_profile
    • ~/.bashrc
  • Elvish
    • ~/.elvish/rc.elv
    • ~/.config/elvish/rc.elv
  • Fish
    • ~/.config/fish/config.fish
  • PowerShell
    • Windows
      • ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
      • ~\Documents\PowerShell\Profile.ps1
    • Unix
      • ~/.config/powershell/Microsoft.PowerShell_profile.ps1
      • ~/.config/powershell/profile.ps1
  • Zsh
    • ~/.zprofile
    • ~/.zshrc

Options

  • --shell - Shell to explicitly generate for. Accepts "bash", "elvish", "fish", "powershell", or "zsh".