Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Oct 1995 12:54:23 +0900
From:      Toshihiro Kanda <candy@fct.kgc.co.jp>
To:        Howland Jared Agnew <jagnew@csugrad.cs.vt.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: xwin
Message-ID:  <199510020354.MAA07361@xxx.fct.kgc.co.jp>
In-Reply-To: Howland Jared Agnew's message of 2 Oct 1995 01:29:06 %2B0900 <Pine.OSF.3.91.951001112805.2701A-100000@csugrad.cs.vt.edu>

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



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