From b86646d0dd1be04afbfb96f4f2c0d5c2cceaa3c0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 26 Apr 2017 17:02:48 +0200 Subject: zsh: Use gsort in place of sort, if necessary --- zsh/.config/zsh/.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 23f852e..6b62934 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -108,8 +108,10 @@ bindkey '\e^b' backward-argument bindkey '\e^f' forward-argument bindkey '\e^k' kill-argument +sort=${commands[gsort]:-$commands[sort]} + ds () { - du -hd1 $1 | sort -h + du -hd1 $1 | $sort -h } # returns the first ghq root, whereas $GHQ_ROOT returns all -- cgit 1.4.1