mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 09:19:25 +00:00
@ -30,7 +30,7 @@ fi
|
||||
|
||||
# Load NPM completion.
|
||||
if (( $+commands[npm] )); then
|
||||
cache_file="${0:h}/cache.zsh"
|
||||
cache_file="${TMPDIR:-/tmp}/prezto-node-cache.$UID.zsh"
|
||||
|
||||
if [[ "$commands[npm]" -nt "$cache_file" || ! -s "$cache_file" ]]; then
|
||||
# npm is slow; cache its output.
|
||||
|
Reference in New Issue
Block a user