2 ms·
Ok, I feel like an idiot. When it says "source this into your .bashrc" what does it mean? I know where .bashrc is, but simply pasting it into the file seems li
by truebosko 18y ago
Ok, I feel like an idiot. When it says "source this into your .bashrc" what does it mean?
I know where .bashrc is, but simply pasting it into the file seems like .. the wrong way to do it. Couldn't really find an answer on Google
- parenthesis 18y agoI think what is referred to is bash's source command: when you've modified your .bashrc and you want the changes to be reflected in your current shell process, you do source .bashrc or, equivalently . .bashrc which runs .bashrc in the current shell, as opposed to in a forked subshell as happens if you did ./.bashrc ; and hence the new functions/aliases/variable settings you've put in .bashrc are now available in the current shell (as opposed to only being visible in a forked subshell and disappearing when it exits).
- truebosko 18y agoNow it's clearer, thank you! :)
- inky 18y agoAdd a line to the end of your ~/.bashrc file with: . $HOME/.bash/j.sh (Change that path to point to wherever j.sh is, though ~/.bash is probably a good place for it.)
- truebosko 18y agoThanks so much! Makes sense