31
rated 0 times
[
31]
[
0]
/ answers: 1 / hits: 123606
/ 1 Year ago, sun, april 2, 2023, 3:36:20
Normally we can source ~/.bashrc
file using this command
source ~/.bashrc
but if I write this in a shell script and execute it, nothing happens. Why?
Is there any way to do this?
My script:
#!/bin/bash
chmod a+x ~/.bashrc
source ~/.bashrc
Also tried .
(dot) instead of source
. Same result.
More From » bash