daml/dev-env/lib/dade-base-profile
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

19 lines
782 B
Bash

# DEPRECATED. Base profile for both bash and zsh -*- shell-script -*-
#
# TODO(gleber): delete when `da-ops` and `nixBash` switches to `dade-dump-profile`.
# Sourcable wrapper around `dade-dump-profile`. See it for details.
# TODO(gleber): Compatibility mode until JBH is ugraded.
export DADE_DEVENV_DIR="${DADE_DEVENV_DIR:-${DADE_BASE:-}}"
# TODO(nikola): Compatibility mode until JBH is upgraded.
# This file is sourced from nixBash by setting BASH_ENV to point to
# dade-base-profile. The script in BASH_ENV is envoked automatically
# when a new shell is spawned, including when Bash invokes a shell
# script with '$()'. We must therefore unset the variable to avoid an
# infinite recursion.
unset BASH_ENV
source /dev/stdin <<< "$(${DADE_DEVENV_DIR}/lib/dade-dump-profile)"