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]

 



On Mon, 2008-12-01 at 13:48 +0000, g wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Joachim 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) :-(
> 
> interesting, as i have in my ~/.bashrc;
> 
> # User specific aliases and functions
> alias rm='rm -i'
> alias cp='cp -i'
> alias mv='mv -i'
> alias d='ls'
> alias s='cd ..'
> alias p='cd -'
> 
> ### added
> alias bye='sudo shutdown -h now'
> alias ca='clear;history -c'
> alias cs='clear'
> alias ch='history -c'
> alias dfs='df -B 1024|grep /dev/hd|sort'
> alias hm='cd -P'
> alias kde='startx'
> alias whom='who -HimqT'
> 
> and i get;
> 
> [geo@argosyiayia ~]$ alias
> alias bye='sudo shutdown -h now'
> alias ca='clear;history -c'
> alias ch='history -c'
> alias cp='cp -i'
> alias cs='clear'
> alias d='ls'
> alias dfs='df -B 1024|grep /dev/hd|sort'
> alias hm='cd -P'
> alias kde='startx'
> alias l.='ls -d .* --color=tty'
> alias ll='ls -l --color=tty'
> alias ls='ls --color=tty'
> alias mv='mv -i'
> alias p='cd -'
> alias rm='rm -i'
> alias s='cd ..'
> alias vi='vim'
> alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot \
>    --show-tilde'
> alias whom='who -HimqT'
> [geo@argosyiayia ~]$
> 
> something must be wrong with my systems, as this is what i have been
> doing from first use of linux.

Same as everyone else. This is not exporting!

> also, executing '. .bashrc' will cause a rereading of '.bashrc' with out
> need of log out/in.

Exactly. You do ". .bashrc", so the commands in .bashrc are executed *by
the current shell*. Once again, this has nothing to do with exporting.

poc

-- 
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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux