Timeline for Preserve tcsh history in multiple terminal windows
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 26, 2024 at 2:30 | comment | added | Berwyn | There is a very thorough answer here that explains this and when to use precmd or postcmd: stackoverflow.com/questions/60148742/… | |
| Jul 10, 2023 at 22:56 | comment | added | glenviewjeff | @PeterGluck I too have the problem of tcsh history numbering being messed up (I'm at >30,000) regardless of whether I use this method or the one you referenced. Here's an archived URL for the above: web.archive.org/web/20221001183120/http://hints.macworld.com/… | |
| Aug 11, 2020 at 0:08 | comment | added | Peter Gluck | This answer made my command number jump in large increments (sometimes thousands). The solution here worked for me: hints.macworld.com/article.php?story=20070715091413640 | |
| Jan 15, 2018 at 4:09 | vote | accept | user1228191 | ||
| Jan 1, 2018 at 9:53 | comment | added | Ayman Salah | @Randall Thank you for pointing that out. I had problems then with the shell session. What you're saying is 100% correct. | |
| Dec 28, 2017 at 20:21 | comment | added | Randall | @AymanSalah what occurs is not obvious - it's the .history file (or histfile shell variable value, if set) getting written to disk. Without the precmd alias set, ls -l .history will show the .history file as a untouched. With precmd set as above, ls -l .history will show the updated timestamp and size, as it gets written with each command. | |
| Mar 14, 2017 at 11:53 | comment | added | Ayman Salah | When I added this alias precmd 'history -S; history -M' nothing occurred when I wrote any command. Is there something else that should be done? | |
| Apr 29, 2015 at 5:20 | review | Late answers | |||
| Apr 29, 2015 at 5:28 | |||||
| Apr 29, 2015 at 5:03 | review | First posts | |||
| Apr 29, 2015 at 5:31 | |||||
| Apr 29, 2015 at 5:02 | history | answered | Idan | CC BY-SA 3.0 |