make the pydf alias optional
pydf is not a true replacement for df, as it cannot stat remote disks. This alias being a default is inappropriate, especially without making it very clear in the documentation
This commit is contained in:
parent
2db7f62c2b
commit
b14a3f3033
1 changed files with 7 additions and 3 deletions
|
@ -175,9 +175,13 @@ elif (( $+commands[wget] )); then
|
|||
alias get='wget --continue --progress=bar --timestamping'
|
||||
fi
|
||||
|
||||
# Resource Usage
|
||||
if (( $+commands[pydf] )); then
|
||||
alias df=pydf
|
||||
if zstyle -s ':prezto:module:utility' pydf 'yes'; then
|
||||
# Resource Usage
|
||||
if (( $+commands[pydf] )); then
|
||||
alias df=pydf
|
||||
else
|
||||
alias df='df -kh'
|
||||
fi
|
||||
else
|
||||
alias df='df -kh'
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue