DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th April 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default Not upto speed on .tcshrc csh.cshrc savehist

I have tried multiple, maybe too few, variations of copy-paste .tcshrc csh.cshrc and the like, unable to duplicate in (t)csh HISTSIZE HISTFILE SAVEHIST zsh settings, and maybe even their bash equivalents.
...................
For lack of time to test ones I've on-disk but not put into production, does anyone have any WORKING save the (t)csh histories ?
....................

Thanks.
__________________
FreeBSD 13-STABLE
Reply With Quote
  #2   (View Single Post)  
Old 28th April 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Quote:
Originally Posted by jb_daefo View Post
I have tried multiple, maybe too few, variations of copy-paste .tcshrc csh.cshrc and the like, unable to duplicate in (t)csh HISTSIZE HISTFILE SAVEHIST zsh settings, and maybe even their bash equivalents.
...................
For lack of time to test ones I've on-disk but not put into production, does anyone have any WORKING save the (t)csh histories ?
....................

Thanks.
Sort of solved. Cannot detail the steps taken, or how much of the question(s) above have been solved, until more experience with the current solution is gained, in other words, until some time has passed, unless of course the random explanatory site should appear.
__________________
FreeBSD 13-STABLE
Reply With Quote
  #3   (View Single Post)  
Old 28th April 2017
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

This is what I have in my tcshrc:

Code:
# Keep n items in history
set history = 8192

# Save history
set savehist = 8192 merge

# Save history here
set histfile=~/.tcsh/history
That being said, I'd strongly recommend using zsh. It's better in literally every way (and I say that as someone who has used tcsh for over ten years and recently switched to zsh).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 29th April 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

...Agree on zsh usage, but maybe better to run it at first login VS setting it as one's shell,
though it seems to do tab completions, at least in X, worse that way...
...............
...A longtime zsh user, but changed the default back to tcsh due to 12.0-CURRENT debugging
kernel crashing under X daily, with multiple urxvt, xvt, etc, and wanting less heavy shells
running in most of them.
...............
...I've what you have, but with the equivalent of
(8192 merge) rather than 8192 merge, in other words parenthesis around the number and
merge keyword.
..............
...Upto speed more today than yesterday, even, with using commands from history in tcsh as
I am used to in zsh.
..............
...Thanks for the bit of .tcshrc documentation.
__________________
FreeBSD 13-STABLE

Last edited by jb_daefo; 29th April 2017 at 02:10 PM. Reason: indentations.
Reply With Quote
  #5   (View Single Post)  
Old 3rd May 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

...It seems to be working 'mostly...' in other words, not applying aliases from the .tcshrc file, etc. Wondering if the settings have to be within a IF loop for effect, as no SMALL man page treats specifically the formatting of that file, vs the many settings available.
__________________
FreeBSD 13-STABLE
Reply With Quote
  #6   (View Single Post)  
Old 4th May 2017
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

...ksh93, and it is not reading /root/.kshrc [no PS1, aliases, etc... ] Ten webpages so far for setting up the .kshrc and none hinted at any solution. Not important, but someone may know.
__________________
FreeBSD 13-STABLE
Reply With Quote
  #7   (View Single Post)  
Old 5th May 2017
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

I don't know about ksh93, but I looked in to the MirBSD Korn Shell (mksh) a while ago as a replacement for tcsh (before eventually settling on zsh). I actually still use it on my server (as that's an old machine and mksh uses a lot less memory).

You may want to look in to it, as it's probably better maintained than ksh93, and I found the manpage to be excellent.

Here's my config file, by the way: https://github.com/Carpetsmoker/dotf...ld/mksh/mkshrc
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fan speed management Oficre_josef OpenBSD General 5 13th November 2014 07:19 PM
SSD disk speed drm OpenBSD General 3 14th February 2014 12:42 PM
speed lumiwa Off-Topic 1 31st October 2012 01:33 PM
Other The H Speed Guide to Lua J65nko News 2 18th April 2012 01:09 AM


All times are GMT. The time now is 02:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick