浏览代码

Fix dud alias. Switch --max-depth for just -d

As far as I can tell (tested on Linux & Darwin, BSD man page seems to agree), `-d` is pretty univerally accepted as the depth argument.  So instead of doing a test, we can just use -d and call it a day.
Brian Hartvigsen 11 年之前
父节点
当前提交
5e601d6515
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/common-aliases/common-aliases.plugin.zsh

+ 1 - 1
plugins/common-aliases/common-aliases.plugin.zsh

@@ -38,7 +38,7 @@ alias -g NE="2> /dev/null"
 alias -g NUL="> /dev/null 2>&1"
 alias -g NUL="> /dev/null 2>&1"
 alias -g P="2>&1| pygmentize -l pytb"
 alias -g P="2>&1| pygmentize -l pytb"
 
 
-alias dud='du --max-depth=1 -h'
+alias dud='du -d 1 -h'
 alias duf='du -sh *'
 alias duf='du -sh *'
 alias fd='find . -type d -name'
 alias fd='find . -type d -name'
 alias ff='find . -type f -name'
 alias ff='find . -type f -name'