Google finds an example of what is, I think, disabling bounces for all Dock icons (not Terminal alone):
However, that may be not the solution in this case. Puzzling me:
[macbookpro08:~] gjp22% date
Tue 2 Aug 2011 13:40:41 BST
[macbookpro08:~] gjp22% uname -a
Darwin macbookpro08.centrim.freeman-centre.ac.uk 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64 x86_64
[macbookpro08:~] gjp22% defaults read com.apple.dock no-bouncing
2011-08-02 13:40:57.029 defaults[2501:303]
The domain/default pair of (/Users/gjp22/Library/Preferences/com.apple.dock.plist, no-bouncing) does not exist
— nothing relating to no-bouncing
my preference file, and I can run for example
tail -f -n 50 /private/var/log/system.log
— then bring something other than Terminal to foreground, watch things added to the log and in my case:
- lines added to the background window do not cause any bounce, do not cause any count to appear in the Dock icon.
(For reference, we’re talking about the Resume feature of Mac OS X Lion 10.7 and later.)
Terminal automatically restores the working directory if you’re using the default shell, bash. If you’re using some other shell, you’ll need to adapt the code in /etc/bashrc
to send an escape sequence to communicate the working directory to Terminal so it can restore the directory later for Resume. If you’re using zsh, see my answer to Resume Zsh-Terminal (OS X Lion), in which I include the appropriate code for zsh.
If you have a custom ~/.bash_profile
or ~/.bashrc
you may need to ensure that you’re not undoing the default behavior by modifying /etc/bashrc
’s customizations. In particular, it sets the PROMPT_COMMAND
environment variable to send the escape sequence at each prompt. If you customize that variable, you’ll need to prefix or append your code to the current value, e.g.:
PROMPT_COMMAND="<your code here>;$PROMPT_COMMAND"
Also, generally, ~/.bash_profile
should execute ~/.bashrc
:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Best Answer
The saved state of Terminal is stored in this folder.
Quit Terminal, copy the contents of this folder from your backup, then open Terminal.