mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
19 lines
379 B
Plaintext
19 lines
379 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
||
|
# make the sx tool available for the user
|
||
|
alias sx="bash ${DIR}/tools/sx/sx"
|
||
|
|
||
|
# load sx configuration
|
||
|
if [ -e "/tmp" ]; then
|
||
|
TMPDIR=${TMPDIR:-/tmp}
|
||
|
fi
|
||
|
TMP_CONFIG="${TMPDIR}/sx.config"
|
||
|
if [ -z "${TMPDIR}" ]; then
|
||
|
TMP_CONFIG=$(tempfile)
|
||
|
fi
|
||
|
|
||
|
sx shell auto-completion > "${TMP_CONFIG}"
|
||
|
source "${TMP_CONFIG}"
|