Re: Re: How to make custom alias in ~.bash_profile work on F10 86_64

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

 



oachim Backes wrote:
> Tim wrote:
>> On Mon, 2008-12-01 at 14:49 +0700, Yunus wrote:
>>> Is there other way to make my custom alias (put in ~.bash_profile)
>>> work?
>> 
>> Just curious, but do they work if you put them in "~/.bashrc"?
>> 
>> 
> 
> Or in /etc/bashrc.
> 
> Unfortunately, exporting aliases is not supported by bash (neither in 
> /etc/profile nor ~/.bash_profile) :-(

No ! that's not right ! Of course it is supported. Aliases can be defined anywhere /etc/bashrc, /etc/profile, /etc/profile.d/*, ~/.bashrc, ~/.bash-profile  ie: in any of the rc files.

Where exactly you put it in, defines whether it would be defined system-wide (in the '/etc/' files), for all bash instances (including scritpts) for a particular user (in the ~/.bashrc) or only for login shells for a particular user (in ~/.bash_profile).

Yunus: After adding the aliases to the file, you need to 'source' it into the current bash session to active the alias:

[steve@laptop ~]$ echo 'alias l="ls -al"' >> ~/.bash_profile
[steve@laptop ~]$ source .bash_profile              # or simply ". ~/.bash_profile" 
[steve@laptop ~]$ l

regards,
- steve
-- 
Linux Centric Marketplace: http://www.tuxcompatible.com


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[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