summaryrefslogtreecommitdiff
path: root/plugins/bundler
diff options
context:
space:
mode:
authorChristian Höltje <choltje@us.ibm.com>2014-04-23 10:13:26 -0400
committerChristian Höltje <docwhat@gerf.org>2014-07-23 09:18:14 -0400
commit63bae2aba9c43a70bbb374fc46e287d7bc46cc54 (patch)
tree6788a4a11930acca085bafb3d1b0610a8de14dd8 /plugins/bundler
parent207b6a1e338e03ba06cccf255fbaa7e6147e8f94 (diff)
downloadzsh-63bae2aba9c43a70bbb374fc46e287d7bc46cc54.tar.gz
zsh-63bae2aba9c43a70bbb374fc46e287d7bc46cc54.tar.bz2
zsh-63bae2aba9c43a70bbb374fc46e287d7bc46cc54.zip
Use $OSTYPE instead of uname to speed things up
The $OSTYPE variable is set at ZSH compile time and can be safely used to determine the OS of the system. e.g. darwin (os x)
Diffstat (limited to 'plugins/bundler')
-rw-r--r--plugins/bundler/bundler.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index 617dcde71..ba3d3f623 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -54,7 +54,7 @@ bundle_install() {
if _bundler-installed && _within-bundled-project; then
local bundler_version=`bundle version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
- if [[ "$(uname)" == 'Darwin' ]]
+ if [[ "$OSTYPE" = darwin* ]]
then
local cores_num="$(sysctl hw.ncpu | awk '{print $2}')"
else