aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-21 18:36:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-21 18:36:32 +1200
commita15d2a5e54ada612f2ff25e170f6bb16a667b2c8 (patch)
tree8a30ffe8e7d85d7e2287499492a068b80c2020da /bash/bashrc.d/ls.bash
parentCleaner argument count tests in cd function (diff)
downloaddotfiles-a15d2a5e54ada612f2ff25e170f6bb16a667b2c8.tar.gz
dotfiles-a15d2a5e54ada612f2ff25e170f6bb16a667b2c8.zip
Unset helper functions for ls/grep setup
These are no longer needed after the alias has been established.
Diffstat (limited to 'bash/bashrc.d/ls.bash')
-rw-r--r--bash/bashrc.d/ls.bash9
1 files changed, 6 insertions, 3 deletions
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index 24bdf4ac..03150fea 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -1,6 +1,3 @@
-# Apply color and exclusions to ls and grep
-eval "$(dircolors -b &>/dev/null)"
-
# Function returns calculated options for ls
function __lsopts {
local lsopts=
@@ -13,3 +10,9 @@ function __lsopts {
# Alias ls with these options
alias ls="ls $(__lsopts)"
+# Unset helper function
+unset __lsopts
+
+# Apply color and exclusions to ls and grep
+eval "$(dircolors -b &>/dev/null)"
+