contrib-script: make it so that you can source everywhere

the aliases are nice to have in other windows; if you want to
source it other places, we should make that possible.
This commit is contained in:
lisa neigut
2019-04-12 12:03:59 -07:00
committed by neil saitug
parent 1d5475197e
commit eb8336331f

View File

@@ -57,10 +57,13 @@ addr=localhost:9090
EOF
# Start bitcoind in the background
test -f "$PATH_TO_BITCOIN/regtest/bitcoind.pid" || \
bitcoind -daemon -regtest
# Start the lightning nodes
test -f /tmp/l1-regtest/lightningd-regtest.pid || \
"$PATH_TO_LIGHTNING/lightningd/lightningd" --lightning-dir=/tmp/l1-regtest
test -f /tmp/l2-regtest/lightningd-regtest.pid || \
"$PATH_TO_LIGHTNING/lightningd/lightningd" --lightning-dir=/tmp/l2-regtest
alias l1-cli='$PATH_TO_LIGHTNING/cli/lightning-cli --lightning-dir=/tmp/l1-regtest'