semaj4712 Posted March 14, 2022 Share Posted March 14, 2022 I was able to succesffully add a few lines to my bash_profile by inserting the following code in the /boot/config/go file. # Update Bash Profile bash_profile () { if [ -f /root/.bash_profile ]; then cat /boot/config/bashprofile >> /root/.bash_profile fi } bash_profile However, I also need to move some config files. So I tried doing this - # Update Bash Profile bash_profile () { if [ -f /root/.bash_profile ]; then cat /boot/config/bashprofile >> /root/.bash_profile cat /boot/config/neofetch >> /root/.config/neofetch/config.conf cat /boot/config/neofetch-unraid >> /root/.config/neofetch/unraid_ascii.txt fi } bash_profile and that did not work, so I added mkdir /root/.config/neofetch chmod 700 /root/.config/neofetch and that also did not work, so now I am super confused. Why will it append the bash_profile but not these other config files? Quote Link to comment
Solution semaj4712 Posted March 15, 2022 Author Solution Share Posted March 15, 2022 I figured it out I realized I was using cat not cp to move the files over cp /boot/config/neofetch /root/.config/neofetch/config.conf Fixed it 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.