#!/bin/sh
# shellcheck disable=SC2236

# Put useful conda environments in PATH.
# Modified 2019-06-25.

_koopa_is_installed conda || return

# Skip on macOS, where we can use Homebrew instead.
_koopa_is_linux || return

env_list="$(conda env list --json)"

_koopa_add_conda_env_to_path pandoc "$env_list"
_koopa_add_conda_env_to_path texlive-core "$env_list"

unset -v env_list

#!/bin/sh
# shellcheck disable=SC2236

# Put useful conda environments in PATH.
# Modified 2019-06-25.

_koopa_is_installed conda || return

# Skip on macOS, where we can use Homebrew instead.
_koopa_is_linux || return

# Early return if local conda environments aren't configured.
prefix="$(_koopa_conda_prefix)"
[ -d "$prefix" ] || return

env_list="$(_koopa_conda_env_list)"

_koopa_add_conda_env_to_path pandoc "$env_list"
_koopa_add_conda_env_to_path texlive-core "$env_list"

unset -v env_list

Speed up config when no local conda envirs are installed
Speed up config when no local conda envirs are installed
