freebsd at edvax.de
Tue Feb 2 18:41:49 UTC 2010
Sorry for not directly answering your question, but
allow me a sidenote that may safe you some trouble
in the future:
You're modifying root's dialog shell. You should not
do that. In case of a problem where the system only
boots in maintenance mode (SUM), you won't be able
to fix things because root cannot access its shell,
because it usually resides on a partition that isn't
mounted yet (/bin/sh and /bin/csh vs. /usr/local/bin/zsh).
There are libraries involved that are dynamically
linked from /usr/local/lib, unless you explicitely
build a static binary (port option).
If you feel that you want another shell than csh for
root tasks, consider using the toor user (which also
has UID 0) and modify toor's shell. You'll still be
able to use the root account in the intended way.
This has often been discussed, but I wanted to make
sure that you're aware of this possibly upcoming problem.
If you HAVEN'T changed root's shell and are only
invoking zsh from the default csh, I haven't said
On Tue, 2 Feb 2010 10:01:45 -0800 (PST), Dánielisz László <laszlo_danielisz at yahoo.com> wrote:
> I am new in this and I have a question about it: I done
> my .zshrc but the zsh is not loading the configuration from it.
I've taken your .zshrc content and installed zsh, but
whenever I started it, "echo $SHELL" tells me it is
/bin/csh... so I'm much more clueless now... :-)
> There are the details:
> # cat .zshrc
> export HISTFILE=~/.zsh_history
> export HISTSIZE=50000
> export SAVEHIST=50000
> alias hhistory 25
> alias jjobs -l
> alias lals -a
> alias lfls -FA
> alias llls -lA
> alias pfdebugtcpdump -n -e -ttt -i pflog0
> alias mtusb mount_msdosfs /dev/da0s1 /mnt/usb0
> alias mtcdmount_cd9660 /dev/acd0 /mnt/acd0/
It seems that there are separators missing. Is this the
case in this message only, or is it in the file, too?
Furthermore, I think the syntax is wrong. You have to
use the format
alias name='command -opt1 -opt2'
and then you'll see that the aliases will work, e. g.
alias pfdebug='tcpdump -n -e -ttt -i pflog0'
will make the command "pfdebug" available.
And I think - but that's a wild guess! - that the syntax
for your export commands should be different, too, such
which could work, at least according to "man zshparam".
> -rw-r--r-- 1 root wheel 328 Feb 2 18:52 .zshrc
> the file can be found in /root/.zshrc
Seems to be correct.
> Do you have any idea why is not working?
Wrong content of the file?
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions