Skip to content

Commit acdc4eb

Browse files
authored
[UPDATE BONUS GUIDE] Update aliases bonus guide (minor fixes) (raspibolt#1077)
* Update aliases.md - Fixed command to overwrite - Updated redaction accordingly to change - Added additional command to display current aliases in terminal * Update for the improvement to show Tor version Update for the improvement to show Tor version * Fixes accordingly to suggestions
1 parent 1d15672 commit acdc4eb

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

guide/bonus/raspberry-pi/aliases.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ The following list of aliases was derived from contributions by [RobClark56](htt
4040

4141
## Set up aliases
4242

43-
* With user "admin", access to `home` folder and download the aliases list provided by Raspibolt community at Github. Put "yes" if the prompt ask you about overwrite.
43+
* With user "admin", access to `home` folder and download the aliases list provided by Raspibolt community at Github. ⚠️ This command will automatically overwrite the previous file you downloaded.
4444

4545
```sh
4646
$ cd /home/admin
47-
$ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/.bash_aliases
47+
$ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/.bash_aliases -O .bash_aliases
4848
```
4949

5050
* Inspect the list of aliases to make sure it does not do bad things and modify it with your personal aliases if you want. Exit with Ctrl-X
@@ -63,6 +63,19 @@ The following list of aliases was derived from contributions by [RobClark56](htt
6363

6464
## Aliases in action
6565

66+
* Simply type "alias" to display all available aliases
67+
68+
```sh
69+
[...]
70+
alias enableallmain='sudo systemctl enable bitcoind electrs btcrpcexplorer lnd rtl scb-backup'
71+
alias enablebitcoind='sudo systemctl enable bitcoind'
72+
alias enablebtcrpcexplorer='sudo systemctl enable btcrpcexplorer'
73+
alias enablecircuitbreaker='sudo systemctl enable circuitbreaker'
74+
alias enablecln='sudo systemctl enable cln'
75+
alias enablefulcrum='sudo systemctl enable fulcrum'
76+
[...]
77+
```
78+
6679
* Test some of the aliases to see if it has been installed properly
6780

6881
```sh
@@ -98,7 +111,7 @@ The following list of aliases was derived from contributions by [RobClark56](htt
98111
$ rm ~/.bash_aliases
99112
```
100113
101-
* Execute a source command to register changes to the .bashrc file:
114+
* Execute a source command to register changes to the .bashrc file:
102115
103116
```sh
104117
$ source /home/admin/.bashrc

resources/.bash_aliases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ alias showmainversion='echo The installed versions of the main services are as f
1818
echo BTC RPC Explorer: `sudo head -n 3 /home/btcrpcexplorer/btc-rpc-explorer/package.json | grep version` ; \
1919
echo Electrs: `electrs --version` ; \
2020
echo RTL: `sudo head -n 3 /home/rtl/RTL/package.json | grep version` ; \
21-
tor --version ; \
21+
tor --version | grep version | grep -v compiled ; \
2222
echo NPM: v`npm --version` ; \
2323
echo NodeJS: `node -v`; \
2424
htop --version ; \

0 commit comments

Comments
 (0)