From: Oleg Broytman Date: Mon, 26 Apr 2021 09:01:14 +0000 (+0300) Subject: Refactor(.bashrc,.shellrc): Move unalias closer to the function X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1fe03c0fd5033da2ab6976f293e700920ba163e6;p=dotfiles.git Refactor(.bashrc,.shellrc): Move unalias closer to the function --- diff --git a/.bashrc b/.bashrc index 4a24145..4f37298 100644 --- a/.bashrc +++ b/.bashrc @@ -30,7 +30,6 @@ shopt -s checkwinsize [ "`type -t ls`" = alias ] && unalias ls [ "`type -t ll`" = alias ] && unalias ll -[ "`type -t mc`" = alias ] && unalias mc back() { cd - "$@"; } functions() { typeset -f "$@"; } diff --git a/.shellrc b/.shellrc index 12688b7..d211675 100644 --- a/.shellrc +++ b/.shellrc @@ -73,6 +73,7 @@ include() { } +[ "`type -t mc`" = alias ] && unalias mc mc() { if [ -n "$SLOWTERM" ]; then MC_SLOW="--slow"