aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-28 13:16:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-28 13:16:58 +1200
commitee8976c0aa94858fb5336bfec43156a7144c4bb0 (patch)
treebc32198697a892c8d1becefcd32c9f70fcf40b3d /bash
parentRemove unneeded underscores before helper funcs (diff)
downloaddotfiles-ee8976c0aa94858fb5336bfec43156a7144c4bb0.tar.gz
dotfiles-ee8976c0aa94858fb5336bfec43156a7144c4bb0.zip
Specify -f for unsetting helper functions
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/grep.bash2
-rw-r--r--bash/bashrc.d/ls.bash2
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash
index a5a7ba28..c426ff2a 100644
--- a/bash/bashrc.d/grep.bash
+++ b/bash/bashrc.d/grep.bash
@@ -35,5 +35,5 @@ grepopts() {
alias grep="grep $(grepopts)"
# Unset helper function
-unset grepopts
+unset -f grepopts
diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash
index 57e6dc73..e74d48d8 100644
--- a/bash/bashrc.d/ls.bash
+++ b/bash/bashrc.d/ls.bash
@@ -22,7 +22,7 @@ lsopts() {
alias ls="ls $(lsopts)"
# Unset helper function
-unset lsopts
+unset -f lsopts
# Define and store appropriate colors for ls
if hash dircolors 2>/dev/null; then