aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-12-11 16:10:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-12-11 16:10:14 +1300
commitdc617fbc63043df3622f7675bbeea5de2fea080d (patch)
tree3b48bb0e067aa8dcb5d3ae738f2372a56a34aff3 /bash/bashrc.d
parentError message if not a directory (diff)
downloaddotfiles-dc617fbc63043df3622f7675bbeea5de2fea080d.tar.gz
dotfiles-dc617fbc63043df3622f7675bbeea5de2fea080d.zip
Got my logic backwards; UNSET options
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/cf.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/cf.bash b/bash/bashrc.d/cf.bash
index a376b089..17c84ade 100644
--- a/bash/bashrc.d/cf.bash
+++ b/bash/bashrc.d/cf.bash
@@ -20,8 +20,8 @@ cf() {
files=("$dir"/*)
# Reset our options
- ((dgs)) && shopt -s dotglob
- ((ngs)) && shopt -s nullglob
+ ((dgs)) || shopt -u dotglob
+ ((ngs)) || shopt -u nullglob
# Print result
printf '%d\t%s\n' \