*BSD News Article 59891


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!news.duke.edu!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!plug.news.pipex.net!pipex!tube.news.pipex.net!pipex!dish.news.pipex.net!pipex!handbag.tecc.co.uk!parody.tecc.co.uk!not-for-mail
From: james@parody.tecc.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PC-keyboard config
Date: 18 Jan 1996 01:03:18 -0000
Organization: A FreeBSD box
Lines: 27
Message-ID: <4dk68m$4la@parody.tecc.co.uk>
References: <4dgreq$82@wn.aksi.net>
NNTP-Posting-Host: localhost

In article <4dgreq$82@wn.aksi.net>, Jeremy Dobrick <morpheus@aksi.net> wrote:
>
>I was just wondering if there is a way to get FreeBSD to utilize a 
>standard PC keyboard layout. For example when I used to use Linux the up 
>arrow key would bring up my last command and I could edit lines with the 
>arrow, backspace, and delete keys. This doesn't seem to be the case under 
>FreeBSD's default settings. Is the a way to change this, or is it time 
>for me to hit the old O'Reilly Termcap book?

It's all a question of default shells. Linux has bash (Bourne-again shell)
as the default, FreeBSD has csh (C Shell) as its default, which is 
considerably older and whose history editing facilities are somewhat
less friendly/bloated (delete according to choice).

To install bash on your system (assuming you have the ports distribution),
do

# cd /usr/ports/shells/bash
# make install
# echo '/usr/local/bin/bash' >> /etc/shells
# chpass -s /usr/local/bin/bash your_login_name

and it'll be there the next time you login!

James
-- 
Segmentation fault (core dumped): cannot find file '.signature'