Re: Global aliases

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

 



Paul Howarth wrote:
On Thu, 2004-10-14 at 05:55, John Hodges wrote:

On Wed, 13 Oct 2004, Craig wrote:


Please look closely at the /etc/bashrc file, you will notice that the file
starts as follows:

# /etc/bashrc

# System wide functions and aliases

Trust me when I say that this IS where you put global aliases. It works for me
and all my friends who use both fedora/red hat and suse, no exceptions. Red
Hat may march to their own drum (which is absolute open source along with
their perception of how things should be) but they are still LSB compliant.

Craig

Perhaps I didn't word my initial post properly. There is a file somewhere containing aliases with regards to various ls commands, and vi=vim. This latter especially I want to change. I had initially thought that aliases in ~/.bashrc would overwrite system-wide aliases of the same name, but that does not appear to be the case. Ditto for /etc/bashrc. Last night I tried 'grep -r ^alias /etc/.* >> somefile' It was still running when I woke up.

At any rate, I don't want anyone to break their heads over something so
trivial. I'll just alias edit='\vi' or some such. I was just curious if
anyone knew off the top of their head.


The alias of vi=vim for bash is set up in /etc/profile.d/vim.sh; as I
mentioned yesterday, the aliases for /bin/sh are used by bash.

Paul.
Quite right. I misundestood what you were looking for. Paul's right, you want the /etc/profile.d/vim.sh.

Craig

--
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.5 (GNU/Linux)

mQGiBECyQJQRBACLIa2u3u3/F8Pm+g5QD4K8eCgIC6RX1oXmtI9ALe9NhbNDZrcy
hYhInCwCifi1zhxZZ/Xu4zyavk8n96USoXylfVg2hAM/P3qLarbqMDvfVPyjtUFd
8lg+NV4SgJ1F0jtqebrXu76AjCIBmLybQ1BYMTWDxB4xSW8lYlJT9+/QDwCg3f0z
9knFKiyZbzp4gpJvl4wH8lMD/0iB5t4VQr0jkQ1R1nVFx8sL9DwDogJZ0SJHnHrq
fiBb+rx4lCLyz00VHlxxNSFsYRnpmefqC4ywfFnyQ9WpVxt3sqJ18ncxW04X3+cc
DHLwqLdW2IKjT9CY4buDqyV8dcOdvYbHR1qQ1dcecYq9fyGHlHYCOr2X5frAmR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zURv+sme3go7A4/XnfP35OzCnAohJBBgRAgAJ
BQJAskCpAhsMAAoJEOl3KJXc2eK4WTQAnRX+0D+aIUSLYQ18xtqKUPQQQyphAJ0Z
WmPi4ubVkt7NDFm0rIVJza2IRQ==
=NGxD
-----END PGP PUBLIC KEY BLOCK-----

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux