From 4ad640dcbb2a2cf15f0ad8973ff8f4a4031679a0 Mon Sep 17 00:00:00 2001 From: TomasM Date: Tue, 7 Nov 2017 04:04:22 -0500 Subject: [PATCH] replace aliases by functions --- Slax/debian/rootcopy/root/.bashrc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Slax/debian/rootcopy/root/.bashrc b/Slax/debian/rootcopy/root/.bashrc index 608173d..34ab25a 100644 --- a/Slax/debian/rootcopy/root/.bashrc +++ b/Slax/debian/rootcopy/root/.bashrc @@ -8,14 +8,10 @@ export EDITOR=mcedit export LS_OPTIONS='--color=auto' eval "`dircolors`" -alias ls='ls $LS_OPTIONS' -alias ll='ls $LS_OPTIONS -l' -alias l='ls $LS_OPTIONS -lA' -# Some more alias to avoid making mistakes: -# alias rm='rm -i' -# alias cp='cp -i' -# alias mv='mv -i' +ls() { /bin/ls $LS_OPTIONS "$@"; } +ll() { /bin/ls $LS_OPTIONS -l "$@"; } +l() { /bin/ls $LS_OPTIONS -lA "$@"; } apt-get() { @@ -36,3 +32,9 @@ apt() /usr/bin/apt --no-install-recommends "$@" fi } + +export -f ls +export -f ll +export -f l +export -f apt-get +export -f apt