mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 10:29:25 +00:00
Check for non-empty files, not just existance
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
cache_file="${0:h}/cache.zsh"
|
||||
if [[ ! -f "$cache_file" ]]; then
|
||||
if [[ ! -s "$cache_file" ]]; then
|
||||
if (( $+commands[npm] )); then
|
||||
# npm is slow; cache its output.
|
||||
npm completion >! "$cache_file" 2> /dev/null
|
||||
|
Reference in New Issue
Block a user