aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
authorcontrixed <contrixed@users.noreply.github.com>2015-07-31 11:02:40 -0400
committerMathias Bynens <mathias@qiwi.be>2016-02-13 11:11:32 +0100
commit153d1a33966c91f8a2026a8110c370be96c910f3 (patch)
tree127e724822f4e5534dabe03e5c32551c6169ff73 /.functions
parent16a5d85d17bc9cdf4e4c48690905cccfa16de961 (diff)
downloaddotfiles-153d1a33966c91f8a2026a8110c370be96c910f3.tar.gz
dotfiles-153d1a33966c91f8a2026a8110c370be96c910f3.tar.bz2
dotfiles-153d1a33966c91f8a2026a8110c370be96c910f3.zip
.functions: Improve `fs`
Accept file names with a dash without interpreting them as a command-line flag. Found by running `shellcheck`. Closes #565.
Diffstat (limited to '.functions')
-rw-r--r--.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/.functions b/.functions
index a5e3736..4a148d6 100644
--- a/.functions
+++ b/.functions
@@ -64,7 +64,7 @@ function fs() {
if [[ -n "$@" ]]; then
du $arg -- "$@";
else
- du $arg .[^.]* *;
+ du $arg .[^.]* ./*;
fi;
}