summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-02 18:07:58 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-02 18:07:58 +0200
commit8f8a771e24dd50ce8091fe9d11d162904433f315 (patch)
tree214ff65e0927da9f186082cb64d28f8cc445a287
parentefeaebd8b1a8d9c4eecac51ee22f66b9bb307948 (diff)
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.
-rw-r--r--bash/bashrc4
1 files changed, 4 insertions, 0 deletions
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" $@; }