summary refs log tree commit diff stats
path: root/user/zsh
diff options
context:
space:
mode:
authorAlan Pearce2020-02-27 11:01:22 +0100
committerAlan Pearce2020-02-27 11:01:22 +0100
commitff93bb2dc1cd3a28ebbf17b8beff205a13d6980b (patch)
tree6d491532f7004e8b69dfb691a14920af98e8ddb7 /user/zsh
parentb3658308fbef6cdc33b14264d33f00d3023b42ac (diff)
downloadnixfiles-ff93bb2dc1cd3a28ebbf17b8beff205a13d6980b.tar.lz
nixfiles-ff93bb2dc1cd3a28ebbf17b8beff205a13d6980b.tar.zst
nixfiles-ff93bb2dc1cd3a28ebbf17b8beff205a13d6980b.zip
zsh: make ds() safer
Diffstat (limited to 'user/zsh')
-rw-r--r--user/zsh/.config/zsh/.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/zsh/.config/zsh/.zshrc b/user/zsh/.config/zsh/.zshrc
index d2ed1807..22e28528 100644
--- a/user/zsh/.config/zsh/.zshrc
+++ b/user/zsh/.config/zsh/.zshrc
@@ -53,7 +53,7 @@ bindkey '\e^k' kill-argument
 sort=${commands[gsort]:-$commands[sort]}
 
 ds () {
-  du -hd1 $1 | $sort -h
+  du -hd1 "$@" | $sort -h
 }
 
 # returns the first ghq root, whereas $GHQ_ROOT returns all