mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
parent
79927ac73a
commit
948d9b3aa5
@ -19,7 +19,7 @@ fi
|
|||||||
# Initialization
|
# Initialization
|
||||||
#
|
#
|
||||||
|
|
||||||
cache_file="${0:h}/cache.zsh"
|
cache_file="${TMPDIR:-/tmp}/prezto-fasd-cache.$UID.zsh"
|
||||||
if [[ "${commands[fasd]}" -nt "$cache_file" || ! -s "$cache_file" ]]; then
|
if [[ "${commands[fasd]}" -nt "$cache_file" || ! -s "$cache_file" ]]; then
|
||||||
# Set the base init arguments.
|
# Set the base init arguments.
|
||||||
init_args=(zsh-hook)
|
init_args=(zsh-hook)
|
||||||
|
@ -30,7 +30,7 @@ fi
|
|||||||
|
|
||||||
# Load NPM completion.
|
# Load NPM completion.
|
||||||
if (( $+commands[npm] )); then
|
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
|
if [[ "$commands[npm]" -nt "$cache_file" || ! -s "$cache_file" ]]; then
|
||||||
# npm is slow; cache its output.
|
# npm is slow; cache its output.
|
||||||
|
@ -39,7 +39,7 @@ fi
|
|||||||
|
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ "$OSTYPE" == darwin* ]]; then
|
||||||
# Perl is slow; cache its output.
|
# Perl is slow; cache its output.
|
||||||
cache_file="${0:h}/cache.zsh"
|
cache_file="${TMPDIR:-/tmp}/prezto-perl-cache.$UID.zsh"
|
||||||
perl_path="$HOME/Library/Perl/5.12"
|
perl_path="$HOME/Library/Perl/5.12"
|
||||||
|
|
||||||
if [[ -f "$perl_path/lib/perl5/local/lib.pm" ]]; then
|
if [[ -f "$perl_path/lib/perl5/local/lib.pm" ]]; then
|
||||||
|
@ -129,7 +129,7 @@ fi
|
|||||||
|
|
||||||
# Load PIP completion.
|
# Load PIP completion.
|
||||||
if (( $#commands[(i)pip(|[23])] )); then
|
if (( $#commands[(i)pip(|[23])] )); then
|
||||||
cache_file="${0:h}/cache.zsh"
|
cache_file="${TMPDIR:-/tmp}/prezto-python-cache.$UID.zsh"
|
||||||
|
|
||||||
# Detect and use one available from among 'pip', 'pip2', 'pip3' variants
|
# Detect and use one available from among 'pip', 'pip2', 'pip3' variants
|
||||||
pip_command="$commands[(i)pip(|[23])]"
|
pip_command="$commands[(i)pip(|[23])]"
|
||||||
|
Loading…
Reference in New Issue
Block a user