From owner-freebsd-questions@FreeBSD.ORG Tue Feb 2 18:41:49 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 196D0106566B for ; Tue, 2 Feb 2010 18:41:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id CEF1B8FC20 for ; Tue, 2 Feb 2010 18:41:48 +0000 (UTC) Received: from r55.edvax.de (port-92-195-104-232.dynamic.qsc.de [92.195.104.232]) by mx01.qsc.de (Postfix) with ESMTP id 2DE473D74A; Tue, 2 Feb 2010 19:41:47 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o12Ifkkx024353; Tue, 2 Feb 2010 19:41:46 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 2 Feb 2010 19:41:46 +0100 From: Polytropon To: =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= 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> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: .zshrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2010 18:41:49 -0000 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 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, ...