Activation

Here are some general recommendations for each shell. These can differ depending on the operating system, so refer to your shell documentation for details.

  • bash: .bashrc, .bash_profile – source activate.sh

  • dash: .profile – source activate.sh

  • ksh93: .profile – source activate.sh

  • zsh: .zshrc – source activate.sh

  • fish: ~/.config/fish/config.fish – source activate.fish

  • elvish: ~/.config/elvish/rc.elv – source activate.elv

  • nushell: ~/.config/nushell/env.nu + ~/.config/nushell/config.nu – source activate.nu

  • powershell: $PROFILE – source activate.ps1

  • csh/tcsh: .cshrc / .tcshrc – source activate.csh (minimal: PATH and environment variables only)

Here is an example using activate.sh for POSIX shell configuration:

# koopa shell
# https://koopa.acidgenomics.com/
# shellcheck source=/dev/null
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
if [ -f "${XDG_CONFIG_HOME}/koopa/activate.sh" ]
then
    . "${XDG_CONFIG_HOME}/koopa/activate.sh"
fi

Restart the shell. Koopa should now activate automatically at login. You can verify this with command -v koopa.

Automatic shell configuration is enabled by our dotfiles management, documented in Dotfiles.

User-specific activation is not required for a shared koopa installation on Linux, which writes a configuration file into /etc/profile.d/zzz-koopa.sh.