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

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

 



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@moe charles]$ echo $SHELL
> > > /bin/bash
> > >
> > > [charles@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@xxxxxxxx                             http://www.ccux.com

Attachment: signature.asc
Description: This is a digitally signed message part


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

  Powered by Linux