-----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.
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/ ****