How to make custom alias in ~.bash_profile work on F10 86_64
g
geleem at bellsouth.net
Mon Dec 1 13:48:56 UTC 2008
-----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 at 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 at argosyiayia ~]$
something must be wrong with my systems, as this is what i have been
doing from first use of linux.
also, executing '. .bashrc' will cause a rereading of '.bashrc' with out
need of log out/in.
peace out.
tc,hago.
g
.
****
in a free world without fences, who needs gates.
**
to mess up a linux box, you need to work at it;
to mess up an ms windows box, you just need to *look at* it.
**
learn linux:
'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html.gz
'The Linux Documentation Project' http://www.tldp.org/
'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
'HowtoForge' http://howtoforge.com/
****
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
iD8DBQFJM+tH+C4Bj9Rkw/wRAhPNAJ4gp7MtL0T+/CDKLu2D/BCvRk2YBgCgiGIU
qU7ANt57JkWxI7OfbJuQm14=
=AmwN
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list