mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Bundle version check only needed bundler installation check, other commands to be bound
This commit is contained in:
parent
66a33b80c3
commit
74927fbfe0
1 changed files with 22 additions and 19 deletions
|
|
@ -34,6 +34,10 @@ _run-with-bundler() {
|
||||||
|
|
||||||
if _bundler-installed; then
|
if _bundler-installed; then
|
||||||
bundler_version=`bundle version | cut -d' ' -f3`
|
bundler_version=`bundle version | cut -d' ' -f3`
|
||||||
|
else
|
||||||
|
bundler_version='0'
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
|
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
|
||||||
if [[ "$(uname)" == 'Darwin' ]]
|
if [[ "$(uname)" == 'Darwin' ]]
|
||||||
then
|
then
|
||||||
|
|
@ -56,4 +60,3 @@ if _bundler-installed; then
|
||||||
compdef _$cmd bundled_$cmd=$cmd
|
compdef _$cmd bundled_$cmd=$cmd
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue