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 EDITOR=mcedit
export LS_OPTIONS='--color=auto' export LS_OPTIONS='--color=auto'
eval "`dircolors`" 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: ls() { /bin/ls $LS_OPTIONS "$@"; }
# alias rm='rm -i' ll() { /bin/ls $LS_OPTIONS -l "$@"; }
# alias cp='cp -i' l() { /bin/ls $LS_OPTIONS -lA "$@"; }
# alias mv='mv -i'
apt-get() apt-get()
{ {
@ -36,3 +32,9 @@ apt()
/usr/bin/apt --no-install-recommends "$@" /usr/bin/apt --no-install-recommends "$@"
fi fi
} }
export -f ls
export -f ll
export -f l
export -f apt-get
export -f apt