Try putting the alias in .bash_profile.  The .bashrc file doesn't get
source when you login.


On Sun, 2002-08-25 at 19:37, James K Kroger wrote:
> Hi all.....I have added some lines to my .bashrc in
> an attempt to make an alias and change my prompt. Though
> I completely log out and back in, the changes do not take
> effect (but xemacs does work when I type "xemacs").
> 
> Also when I type alias, the "x" is not there, but several
> other aliases ARE, and I can not figure out where they are
> created. 

/etc/profile contains system wide settings.

> I looked in .bash_profile, and in /etc/.bashrc.
> 
> Following are my .bashrc file, and then the output from "alias."
> Thanks very much for any help.
> Jim
> 
> ----------------------------------------------------
> # .bashrc
> 
> # User specific aliases and functions
> 
> # Source global definitions
> if [ -f /etc/bashrc ]; then
>         . /etc/bashrc
> fi
> 
> alias x='xemacs'
> 
> echo 'THIS IS THE NEW BASHRC'
> 
> PS1='-------------- \w'
> ----------------------------------------------------
> l.      ls -d .[a-zA-Z]* --color=tty
> ll      ls -l --color=tty
> ls      ls --color=tty
> mc      setenv MC `/usr/bin/mc -P !*`; cd $MC; unsetenv MC
> which   alias | /usr/bin/which --tty-only --read-alias --show-dot
> --show-tilde
> ----------------------------------------------------
> 
> 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to