aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Anderson <camel@droidmod.org>2011-02-09 10:58:16 -0500
committerScott Anderson <camel@droidmod.org>2011-02-09 11:07:58 -0500
commit1a77e026221c4a1fd077f5114b7e9f97daad95ff (patch)
treef16db2b849f581b95a8a4bc40e5d98581182f11e
parent95f12f0ed14962f8568befa616f8c1cfa4d14b84 (diff)
downloadexternal_bash-1a77e026221c4a1fd077f5114b7e9f97daad95ff.zip
external_bash-1a77e026221c4a1fd077f5114b7e9f97daad95ff.tar.gz
external_bash-1a77e026221c4a1fd077f5114b7e9f97daad95ff.tar.bz2
Use a loop for busybox aliases
Change-Id: I973a89ca9ddd4d5b20a5be695319bb233744f7a2
-rw-r--r--etc/bashrc18
1 files changed, 4 insertions, 14 deletions
diff --git a/etc/bashrc b/etc/bashrc
index d12d076..a828fb0 100644
--- a/etc/bashrc
+++ b/etc/bashrc
@@ -38,21 +38,11 @@ fi
# Set up a ton of aliases to cover toolbox with the nice busybox
# equivalents of its commands
-alias cat='busybox cat'
-alias ln='busybox ln'
+for i in cat chmod chown df insmod ln lsmod mkdir mount mv rm rmdir rmmod umount; do
+ eval alias ${i}=\"busybox ${i}\"
+done
+unset i
alias ls='busybox ls --color'
-alias mount='busybox mount'
-alias rm='busybox rm'
-alias umount='busybox umount'
-alias df='busybox df'
-alias chmod='busybox chmod'
-alias chown='busybox chown'
-alias mv='busybox mv'
-alias mkdir='busybox mkdir'
-alias rmdir='busybox rmdir'
-alias insmod='busybox insmod'
-alias rmmod='busybox rmmod'
-alias lsmod='busybox lsmod'
# Try to keep environment pollution down, EPA loves us.
unset use_color safe_term match_lhs