Beerkex'd Posted November 7, 2009 Share Posted November 7, 2009 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. Link to comment https://www.insanelymac.com/forum/topic/196306-terminalapp/ Share on other sites More sharing options...
omol Posted November 7, 2009 Share Posted November 7, 2009 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 Link to comment https://www.insanelymac.com/forum/topic/196306-terminalapp/#findComment-1322471 Share on other sites More sharing options...
Beerkex'd Posted November 7, 2009 Author Share Posted November 7, 2009 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. Link to comment https://www.insanelymac.com/forum/topic/196306-terminalapp/#findComment-1322481 Share on other sites More sharing options...
omol Posted November 7, 2009 Share Posted November 7, 2009 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 Link to comment https://www.insanelymac.com/forum/topic/196306-terminalapp/#findComment-1322660 Share on other sites More sharing options...
Recommended Posts