summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc4
1 files changed, 3 insertions, 1 deletions
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