mirror of
https://github.com/wahyd4/dotfiles.git
synced 2026-08-09 04:46:12 +10:00
.functions: Improve fs
Accept file names with a dash without interpreting them as a command-line flag. Found by running `shellcheck`. Closes #565.
This commit is contained in:
committed by
Mathias Bynens
parent
16a5d85d17
commit
153d1a3396
+1
-1
@@ -64,7 +64,7 @@ function fs() {
|
||||
if [[ -n "$@" ]]; then
|
||||
du $arg -- "$@";
|
||||
else
|
||||
du $arg .[^.]* *;
|
||||
du $arg .[^.]* ./*;
|
||||
fi;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user