Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 =]

share|improve this question
    
Turns out, its /etc/bashrc thats not sourced =] – Jeffrey L. Roberts Apr 20 at 20:16
up vote 1 down vote accepted

.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
share|improve this answer
    
hrmm, I guess its /etc/bashrc thats not sourced... is that because of the .bash_profile? – Jeffrey L. Roberts Apr 20 at 20:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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