Ode to the Shell (Was: which file manager you use?)

Ray Curtis ray at ccux.com
Fri Feb 6 00:30:10 UTC 2004


On Thu, 2004-02-05 at 18:59, Charles Howse wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Thursday 05 February 2004 05:30 pm, Hal Burgiss wrote:
> > On Thu, Feb 05, 2004 at 05:18:15PM -0600, Charles Howse wrote:
> > > [charles at moe charles]$ echo $SHELL
> > > /bin/bash
> > >
> > > [charles at moe charles]$ alias
> > > alias l.='ls -d .* --color=tty'
> > > alias ll='ls -l --color=tty'
> > > alias ls='ls --color=tty'
> > > alias vi='vim'
> > > alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot
> > > - --show-tilde'
> >
> > $ grep -r ^alias /etc/profile.d/
> > /etc/profile.d/colorls.csh:alias ll 'ls -l --color=tty'
> > /etc/profile.d/colorls.csh:alias l. 'ls -d .* --color=tty'
> > /etc/profile.d/colorls.csh:alias ls 'ls --color=tty'
> > /etc/profile.d/colorls.csh:alias ll 'ls -l'
> > /etc/profile.d/colorls.csh:alias l. 'ls -d .*'
> > /etc/profile.d/which-2.sh:alias which='alias | /usr/bin/which
> > --tty-only --read-alias --show-dot --show-tilde'
> > /etc/profile.d/mc.csh:alias mc 'setenv MC `/usr/bin/mc -P \!*`; cd
> > $MC; unsetenv MC'
> > /etc/profile.d/vim.csh:alias vi vim
> 
> Thanks Hal.
> Geeez Louise, does that mean that I can't put my custom aliases in ~/.bashrc?
> Do they now have to be in the format of /etc/profile.d/*?
> No more  echo "alias x='logout'" >> ~/.bashrc?
> 

I always prefer to just put the alias's into a file and then
source them from .bashrc.
Such as a file called ~/alias or anywhere you prefer with
your aliases :
alias ll='ls -l -a --color=tty'
alias ls='ls --color=tty'
alias reboot='/sbin/shutdown -r now'
alias md=mkdir
alias rd='rm -R'

Then in .bashrc just add the line:
source ~/alias

Just MHO,




-- 
Ray Curtis         Unix Programmer/Consultant   Curtis Consulting
mailto:ray at ccux.com                             http://www.ccux.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040205/3b21c502/attachment-0001.sig>


More information about the fedora-list mailing list