mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 19:49:25 +00:00
feat(helper): add os-type helper functions
Add the following functions: - is-darwin - is-linux - is-bsd - is-cygwin And apply them everywhere I found code doing that what these functions do.
This commit is contained in:
committed by
Kaleb Elwert
parent
1b99be879c
commit
f4ca9ebfc9
@ -37,7 +37,7 @@ fi
|
||||
# Local Module Installation
|
||||
#
|
||||
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
if is-darwin; then
|
||||
# Perl is slow; cache its output.
|
||||
cache_file="${TMPDIR:-/tmp}/prezto-perl-cache.$UID.zsh"
|
||||
perl_path="$HOME/Library/Perl/5.12"
|
||||
|
Reference in New Issue
Block a user