daml/dev-env/profile_zsh.sh
Nikola Knežević 79f8bf0a58 Simplify profile_zsh.sh (#212)
Rely on zsh features to simplify profile_zsh.sh file.

- Remove `DADE_REPO_ROOT` as it is not needed anywhere, `dade-assist` redefines
  it already.
- `${0:A:h}` gives the absolute path of the folder *this* file resides in, no
  need for `cd`, `dirname`, and `pwd` combo.
- Use simple process redirection (`<`), as it is more robust than the one in
  bash, and works better than `<<<`
2019-04-05 12:45:34 +02:00

7 lines
217 B
Bash

# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# DADE shell profile compatible with zsh.
source <("${0:A:h}"/bin/dade assist)