![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
||||
![]()
Try TCSH(1). Both CSH(1) and TCSH(1) have a history mechanism but TCSH(1) has more features. If you read the TCSH(1) manual, the sections with a (+) denote the differences.
__________________
A daemon in need is a daemon indeed. Last edited by classicmanpro; 8th January 2011 at 04:06 PM. |
|
||||
![]()
Try the history built-in command and look-up the alias feature.
PS: The first thing I do after I reinstall my system is to copy .tcshrc in my $HOME and install TCSH(1).
__________________
A daemon in need is a daemon indeed. Last edited by classicmanpro; 8th January 2011 at 09:32 PM. |
|
||||
![]()
Actually, csh and tcsh are one and the same on FreeBSD. /bin/csh is a hard link to /bin/tcsh (Check the inode).
Back to the original question, If you want zsh as root, but don't want to change the default shell, you can do is just start zsh by typing it after you used su to become root. As for your history search command, as far as I know csh isn't able to do exactly that. csh does have a more or less similar option called autoexpand. If you type ls it and press up, it will only show you the commands that start with ls. IMHO tcsh is a fairly usable interactive shell, but many people are put off by the not-always-equally-sane default options. Here is what I use, and would personally consider a slightly more sane cshrc: http://rwxrwxrwx.net/csh.cshrc Save it as /root/.cshrc overwrite the file that is already there.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. Last edited by Carpetsmoker; 10th January 2011 at 09:34 AM. |
|
||||
![]() Quote:
I use csh with root user and I use ZSH with normal user . normal use use zsh and do not use csh |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find command (Linux options?) | deadeyes | FreeBSD General | 11 | 23rd August 2009 06:07 PM |
K3b cannot find growisofs | maxrussell | FreeBSD General | 5 | 26th April 2009 12:20 PM |
sorting special characters | gosha | Programming | 15 | 9th April 2009 02:29 AM |
Command to find and replace, but not creating a new file | 18Googol2 | Programming | 4 | 22nd September 2008 10:28 PM |
pkg_add g95;g95 x.f95: cannot find g95 | enpey | OpenBSD Packages and Ports | 8 | 27th August 2008 12:48 AM |