From d427bc7f1b6cd9d884d3c79f626ce4aa1b699239 Mon Sep 17 00:00:00 2001
From: Shivam <tobreakthecage@proton.me>
Date: Sat, 1 Apr 2023 18:34:40 +0530
Subject: [PATCH] Check .bashrc for .bash_profile

---
 03_1_Verifying_Your_Bitcoin_Setup.md | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/03_1_Verifying_Your_Bitcoin_Setup.md b/03_1_Verifying_Your_Bitcoin_Setup.md
index fe5f49e03..250cf31a1 100644
--- a/03_1_Verifying_Your_Bitcoin_Setup.md
+++ b/03_1_Verifying_Your_Bitcoin_Setup.md
@@ -15,7 +15,14 @@ alias bd="bitcoind"
 alias btcinfo='bitcoin-cli getwalletinfo | egrep "\"balance\""; bitcoin-cli getnetworkinfo | egrep "\"version\"|connections"; bitcoin-cli getmininginfo | egrep "\"blocks\"|errors"'
 EOF
 ```
-After you enter these aliases you can either `source .bash_profile` to input them or just log out and back in.
+After you enter these aliases you can either `source .bash_profile` to input them or just log out and back in. If the latter doesn't work, add a small script at the end of `.bashrc` to load `.bash_profile` by default.
+```
+cat >> ~/.bashrc <<EOF
+if [ -f ~/.bash_profile ]; then
+  . ~/.bash_profile
+fi
+EOF
+```
 
 Note that these aliases includes shortcuts for running `bitcoin-cli`, for running `bitcoind`, and for going to the Bitcoin directory. These aliases are mainly meant to make your life easier. We suggest you create other aliases to ease your use of frequent commands (and arguments) and to minimize errors. Aliases of this sort can be even more useful if you have a complex setup where you regularly run commands associated with Mainnet, with Testnet, _and_ with Regtest, as explained further below.