Config

wash.yaml

The Wash config file is located at ~/.puppetlabs/wash/wash.yaml, and can be used to configure the wash-server. You can override this location via the config-file flag.

Below are all the configurable options.

All options except for external-plugins can be overridden by setting the WASH_<option> environment variable with option converted to ALL CAPS.

NOTE: Do not override socket in a config file. Instead, override it via the WASH_SOCKET environment variable. Otherwise, Wash’s commands will not be able to interact with the server because they cannot access the socket.

wash shell

Wash uses your system shell to provide the shell environment. It determines this using the SHELL environment variable or falls back to /bin/sh, so if you’d like to specify a particular shell set the SHELL environment variable before starting Wash.

Wash uses the following environment variables

For some shells, Wash provides a customized environment. Please file an issue if you’d like to add support for new shells.

Wash currently provides a customized environment for

Customized environments alias Wash subcommands to save typing out wash <subcommand> so they feel like shell builtins. If you want to use an executable or builtin Wash has overridden, please use its full path or the builtin command.

Customized environments also supports reading ~/.washenv and ~/.washrc files. These files are loaded as follows:

  1. If running Wash non-interactively (by piping stdin or passing the -c option)
    1. If ~/.washenv does not exist, load the shell’s default non-interactive config (such as .zshenv or from BASH_ENV)
    2. Configure subcommand aliases
    3. If ~/.washenv exists, load it
  2. If running Wash interactively
    1. Do all non-interactive config above
    2. If ~/.washrc does not exist, load the shell’s default interactive config (such as .bash_profile or .zshrc)
    3. Re-configure subcommand aliases, and configure the command prompt
    4. If ~/.washrc exists, load it

That order ensures that the out-of-box experience of Wash is not adversely impacted by your existing environment while still inheriting most of your config. If you customize your Wash environment with .washenv and .washrc, be aware that it’s possible to override Wash’s default prompt and aliases.

For other shells, Wash creates executables for subcommands and does no other customization.