From 8f8a771e24dd50ce8091fe9d11d162904433f315 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 2 Jul 2021 18:07:58 +0200 Subject: bashrc: unalias identifiers before declaring them as functions On some systems, those identifiers are aliased in system-wide rc files, so declaring them as functions fails. --- bash/bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/bashrc b/bash/bashrc index 09d6a95..4762e1b 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -31,6 +31,8 @@ alias egrep='egrep --color=auto' # XXX should this be here? stty -ixon +unalias ll lt la lh lla llh + ll() { ls -l "$@"; } lt() { ls -lt "$@"; } la() { ls -A "$@"; } @@ -39,6 +41,7 @@ lla() { ls -lA "$@"; } llh() { ls -lAh "$@"; } # cd upwards a given number of levels +unalias cu cu() { local lvl=$1 @@ -69,6 +72,7 @@ __ht() fi } +unalias h t h() { __ht "head -32" $@; } t() { __ht "tail -32" $@; } -- cgit v1.2.3