mprocs-user-shell.sh
1 # shellcheck shell=bash 2 3 eval "$(devimint env)" 4 5 echo Waiting for devimint to start up fedimint 6 7 STATUS="$(devimint wait)" 8 if [ "$STATUS" = "ERROR" ]; then 9 echo "fedimint didn't start correctly" 10 echo "See other panes for errors" 11 exit 1 12 fi 13 14 alias lightning-cli="\$FM_LIGHTNING_CLI" 15 alias lncli="\$FM_LNCLI" 16 alias bitcoin-cli="\$FM_BTC_CLIENT" 17 alias fedimint-cli="\$FM_MINT_CLIENT" 18 alias gateway-cln="\$FM_GWCLI_CLN" 19 alias gateway-lnd="\$FM_GWCLI_LND" 20 alias gateway-ldk="\$FM_GWCLI_LDK" 21 22 eval "$(fedimint-cli completion bash)" || true 23 eval "$(gateway-cli completion bash)" || true 24 25 echo Done! 26 echo 27 echo "This shell provides the following aliases:" 28 echo "" 29 echo " fedimint-cli - cli client to interact with the federation" 30 echo " lightning-cli - cli client for Core Lightning" 31 echo " lncli - cli client for LND" 32 echo " bitcoin-cli - cli client for bitcoind" 33 echo " gateway-cln - cli client for the CLN gateway" 34 echo " gateway-lnd - cli client for the LND gateway" 35 echo " gateway-ldk - cli client for the LDK gateway" 36 echo 37 echo "Use '--help' on each command for more information" 38 echo "" 39 echo "Important mprocs key sequences:" 40 echo "" 41 echo " ctrl+a <up/down arrow> - switching between panels" 42 echo " ctrl+a q - quit mprocs"