0

I am using the first answer from

How to automatically record all your terminal sessions with script utility

to record my terminal sessions, however, I can not figure out how to get my bashrc to be sourced and record the sessions automatically....

Any ideas are greatly appreciated =]

  • Turns out, its /etc/bashrc thats not sourced =] – Jeffrey L. Roberts Apr 20 '16 at 20:16
1

.bashrc is sourced by default.

-bash-4.1$ echo 'echo I was read' >> ~/.bashrc
-bash-4.1$ script asdf
Script started, file is asdf
I was read
bash-4.1$ exit
Script done, file is asdf
  • hrmm, I guess its /etc/bashrc thats not sourced... is that because of the .bash_profile? – Jeffrey L. Roberts Apr 20 '16 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.