Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Eliminate duplicate shell commands from history file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Eliminate duplicate shell commands from history file
Authored by: famousactress on Jul 18, '03 11:28:06AM

At the risk of sounding ignorant (which, when it comes to *X I am).. I have no idea what shell I'm using. I have a .cshrc file defined that sources /sw/bin/init.csh, and I added the set histdup='prev' to it.

Sorry if this doesn't work for everyone !



[ Reply to This | # ]
Eliminate duplicate shell commands from history file
Authored by: ashill on Jul 18, '03 12:18:50PM

If you're using OS X and you don't know, you're almost certainly using tcsh (as it's the default).

One way to check is
echo $SHELL
or run 'ps' to see which terminal processes are running.



[ Reply to This | # ]
Eliminate duplicate shell commands from history file
Authored by: famousactress on Jul 18, '03 01:02:28PM

yep.. tcsh.

thanks!



[ Reply to This | # ]