Help - Search - Members - Calendar
Full Version: Terminal.app
InsanelyMac Forum > Apple World > Applications
Beerkex'd
In 10.6, Terminal.app only remembers what I've typed in super user mode.

In 10.5, it also remembers what I've typed in "normal" mode.

How do I get it to do that in Snow?

I have some extremely long commands that I use often (compiling) and it's annoying to have to copy/paste them in every time.


omol
Suppose you are using bash, then in your .bashrc, at the very least make sure these lines are in the PS1 interactive section:-

shopt -s histappend
export HISTCONTROL=ignoredups
export HISTIGNORE="&:ls:[bf]g:exit"
shopt -s cmdhist

regards,
omol
Beerkex'd
Thanks.

Apparently there is no ~/.bashrc on OS X by default and I found a post by someone saying to use ~/.profile instead so now I'm a little confused.

I'll figure it out eventually.


omol
QUOTE (Beerkex'd @ Nov 7 2009, 02:36 PM) *
Apparently there is no ~/.bashrc on OS X by default and I found a post by someone saying to use ~/.profile instead so now I'm a little confused.


Read the friendly GNU bash info "info bash" in a terminal. I don't really think they belongs to profile, should be in the resource file, either .shrc or .bashrc. But of course since shopt I believe is bash specific, so it should be in .bashrc.

regards,
omol
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.