From owner-freebsd-newbies@FreeBSD.ORG Fri Aug 27 11:32:11 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95C4316A4CE for ; Fri, 27 Aug 2004 11:32:11 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0970043D66 for ; Fri, 27 Aug 2004 11:32:11 +0000 (GMT) (envelope-from freebsd@xtsy.de) Received: from [212.227.126.179] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1C0exi-0001lu-00; Fri, 27 Aug 2004 13:32:06 +0200 Received: from [80.140.234.223] (helo=WORK) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1C0exi-0004bH-00; Fri, 27 Aug 2004 13:32:06 +0200 Date: Fri, 27 Aug 2004 13:33:57 +0200 From: "Marcel.lautenbach" X-Mailer: The Bat! (v2.04.7) Business Organization: XTSY X-Priority: 3 (Normal) Message-ID: <58129086.20040827133357@xtsy.de> To: Kevin Reiter In-Reply-To: <6ddb7bf8040826125337f556d4@mail.gmail.com> References: <801213900.20040825215844@xtsy.de> <6ddb7bf8040826125337f556d4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:09d3dc163080560c6eb0588e74d6b604 cc: freebsd-newbies@freebsd.org Subject: Re: changing the shell and editor X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Marcel.lautenbach" List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 11:32:11 -0000 Guten Tag Kevin Reiter, am Donnerstag, 26. August 2004 um 21:53 schrieben Sie: KR> On Wed, 25 Aug 2004 21:58:44 +0200, Marcel.lautenbach wrote: >> now i use the bash shell. but, i am not able to change my enviroment >> variables anymore. trying "set EDITOR emacs" did not work. when ich >> echo my editor variable, it is empty. though i have changed my shell >> back to csh in the /etc/master.password file, when i log on i still >> use the bash. KR> If you want to use bash (as I do) and set all your environmental KR> variables, here's the .bashrc I use: KR> # .bashrc KR> # Excerpts from "The Complete FreeBSD" KR> umask 022 KR> export EDITOR=/usr/bin/ee KR> export MANPATH=/usr/share/man:/usr/local/man KR> export PAGER=less KR> export SHELL=/usr/local/bin/bash KR> export KR> PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X1 KR> 1R6/bin KR> # Get my favorite prompt: KR> PS1="\u@\h [\w]\\$ " KR> PS2="\u@\h \! " KR> # Make sure I have a $DISPLAY: KR> if [ "$DISPLAY" = "" ]; then KR> export DISPLAY=:0 KR> fi KR> # Custom aliases go here: KR> alias ls='ls -CFG' KR> # -- End .bashrc -- KR> For the bash shell, you'll need .bashrc and .bash_profile in your $HOME KR> If you want colorized dir listings, like in Linux, you'll also need KR> .dir_colors in addition to the other 2. I've uploaded samples (the KR> ones I use) to http://penguinnetwerx.net/bsdfiles/bash_files.tar KR> You'll need to make them executable in order for them to work upon KR> your next login. You don't need to edit any other files in order to KR> set environmental variables on your box except for those files. You KR> might also want to rename all the other shell files (.profile, etc.) KR> in your homedir, unless you plan on switching back and forth between KR> shells. KR> HTH KR> ~/kevin hey kevin, well, i have copied your dir_color file in my home directory, made it executable and also copied to my /etc folder later, but either way, i don't get a colored listing :-( what did i do wrong? -- mailto:freebsd@xtsy.de