From owner-freebsd-questions Sun Oct 1 21:26:13 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA15519 for questions-outgoing; Sun, 1 Oct 1995 21:26:13 -0700 Received: from mail0.iij.ad.jp (root@mail0.iij.ad.jp [192.244.176.61]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id VAA15514 for ; Sun, 1 Oct 1995 21:26:08 -0700 Received: from uucp0.iij.ad.jp (uucp0.iij.ad.jp [192.244.176.51]) by mail0.iij.ad.jp (8.6.12+2.4W/3.3W9-MAIL) with ESMTP id NAA25320; Mon, 2 Oct 1995 13:25:47 +0900 Received: (from uucp@localhost) by uucp0.iij.ad.jp (8.6.12+2.4W/3.3W9-UUCP) with UUCP id NAA11935; Mon, 2 Oct 1995 13:25:46 +0900 Received: from xxx.fct.kgc.co.jp by fender.fct.kgc.co.jp (8.6.12+2.4W/3.4W:95071117) id MAA08771; Mon, 2 Oct 1995 12:54:24 +0900 Received: by xxx.fct.kgc.co.jp (8.6.11/3.3W8:95062916) id MAA07361; Mon, 2 Oct 1995 12:54:23 +0900 Date: Mon, 2 Oct 1995 12:54:23 +0900 From: Toshihiro Kanda Message-Id: <199510020354.MAA07361@xxx.fct.kgc.co.jp> To: Howland Jared Agnew Cc: freebsd-questions@freebsd.org In-reply-to: Howland Jared Agnew's message of 2 Oct 1995 01:29:06 +0900 Subject: Re: xwin Sender: owner-questions@freebsd.org Precedence: bulk > I need to know where I can go to find info on the bash sell I must set it > up for a user. If you know what the rc file is for the bash shell and > you know how to set aliases will you please write back. > > I have been told that the way to set aliases is to put in the .profile > > I want to be able to telnet to csugrad.cs.vt.edu with typing "gc" > > alias gc="telnet csugrad.cs.vt.edu" > > thanks in advance > H Jared Agnew Basically, bash reads only $HOME/.bash_login on login, only $HOME/.bashrc on no-login (See bash(1) for more information). You may add the following lines to .bashrc. -----8<----------8<----------8<----------8<----------8<----- gc=() { telnet csugrad.cs.vt.edu } -----8<----------8<----------8<----------8<----------8<----- And you may want to add . $HOME/.bashrc into the last line of .bash_login. candy@fct.kgc.co.jp (Toshihiro Kanda)