Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Feb 2010 19:41:46 +0100
From:      Polytropon <freebsd@edvax.de>
To:        =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= <laszlo_danielisz@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: .zshrc
Message-ID:  <20100202194146.c52cf36e.freebsd@edvax.de>
In-Reply-To: <519098.74143.qm@web30807.mail.mud.yahoo.com>
References:  <519098.74143.qm@web30807.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
anything. :-)

On Tue, 2 Feb 2010 10:01:45 -0800 (PST), D=E1nielisz L=E1szl=F3 <laszlo_dan=
ielisz@yahoo.com> wrote:
> hi,
>=20
> 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:
>=20
> # cat .zshrc=20
> export HISTFILE=3D~/.zsh_history
> export HISTSIZE=3D50000
> export SAVEHIST=3D50000
>=20
> 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=3D'command -opt1 -opt2'

and then you'll see that the aliases will work, e. g.

	alias pfdebug=3D'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
as

	HISTFILE=3D~/.zsh_history
	HISTSIZE=3D50000
	SAVEHIST=3D50000

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?



--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100202194146.c52cf36e.freebsd>