replace aliases by functions

pull/40/head
TomasM 2017-11-07 04:04:22 -05:00
parent 345243b7b4
commit 4ad640dcbb
1 changed files with 9 additions and 7 deletions

View File

@ -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