aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cf.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-10 16:25:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-10 16:25:47 +1300
commite1401360121785b7dd7b5b5d7b7ef5b337e5bb39 (patch)
treeed7e1e9c7020e17d7acbe5a6bb173d6f6d94d854 /bash/bashrc.d/cf.bash
parentRemove brace expansion for grep alias (diff)
downloaddotfiles-e1401360121785b7dd7b5b5d7b7ef5b337e5bb39.tar.gz
dotfiles-e1401360121785b7dd7b5b5d7b7ef5b337e5bb39.zip
Move array decs inline, remove quotes
Diffstat (limited to 'bash/bashrc.d/cf.bash')
-rw-r--r--bash/bashrc.d/cf.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/bash/bashrc.d/cf.bash b/bash/bashrc.d/cf.bash
index db715c2f..66917375 100644
--- a/bash/bashrc.d/cf.bash
+++ b/bash/bashrc.d/cf.bash
@@ -19,9 +19,8 @@ cf() {
# Count files and print; use a subshell so options are unaffected
(
- declare -a files
shopt -s dotglob nullglob
- files=("$dir"/*)
+ declare -a files=("$dir"/*)
printf '%d\t%s\n' "${#files[@]}" "$dir"
)
}