Re: Aliases in gnome

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-06-01 at 06:43 -0700, Tom Spec wrote:
> I have setup many aliases in my .bash_profile script on Fedora Core 5.
> For example:
> 
> alias ltr="ls -latr"
> 
> When I ssh to the box, all my aliases work fine, but when I log into
> gnome locally on the box then start a terminal (gnome-terminal), I
> don't get any aliases.
> 
> Is there a way I can get those aliases to work in gnome also?
> 
When you ssh to the box you are opening a login shell, so .bash_profile
is used.
When you open a terminal from gnome you are not using a login shell,
so .bashrc is used and .bash_profile is not used.
To have it work in both circumstances simply copy the aliases
from .bash_profile to .bashrc.  Or you can change the term properties in
gnome as others have said to make it a login shell by default.

The man page for bash explains when each file is processed and will help
you understand why the differences.


> Tom
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux