From ff93bb2dc1cd3a28ebbf17b8beff205a13d6980b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 27 Feb 2020 11:01:22 +0100 Subject: zsh: make ds() safer --- user/zsh/.config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1