mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user