1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 00:17:59 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
mattmc3
da87c79b3a Add zstyle to skip aliases for additional modules 2023-04-13 09:33:48 -07:00
Indrajit Raychaudhuri
37443368c1 ruby: Cleanup and optimize 'ruby' module
Changes:
- Honor `$RBENV_ROOT` or `RVM_DIR` if set but, no need to set it
  explicitly if not set. Instead, let the respective initialization
  scripts take care of that.
- Reverse `rbenv` vs `rvm` selection order, preferring `rbenv` instead.
- Check for availability of `rbenv` or `rvm` function instead of command
  to validate requirements. In a properly configured and initialized
  shell, `rbenv` or `rvm` will be available as function.
- Adhere to more idiomatic Zsh operation and minimize redundant syntaxes.

For additional rationale, see: https://github.com/rbenv/rbenv/wiki/Why-rbenv%3F
2021-06-01 14:31:26 -05:00
laggardkernel
6ae2f39cc1 ruby: support environment variable RBENV_ROOT 2019-09-10 09:00:11 -07:00
Alexey Zapparov
e26387656d Don't double-source chruby
If chruby was installed using default way, most likely chruby and
auto-switching will be already sourced (at least on most Linuxes).
2018-02-17 19:38:12 -08:00
François VANTOMME
7c64584629 Add bundle clean alias 2017-04-13 03:04:21 -07:00
Shane O'Grady
90eae2b491 If a default Ruby is set, switch to it
Set PATH variables to allow gems such as Bundler to be found and for the
`ruby-info` function to properly work.

A default Ruby must be set in ~/.ruby-version; for more information, see
https://github.com/postmodern/chruby#default-ruby.

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-11-11 22:52:40 -05:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Sorin Ionescu
dbeb6d4e1a [Fix #361] Load chruby when found 2014-02-01 23:37:29 -05:00
Sorin Ionescu
da1a837cd4 Refactor Bundler aliases 2013-11-30 19:25:11 -05:00
Sorin Ionescu
52ea7152ad Git ignore bundler vendor/assets 2013-11-25 17:25:11 -05:00
Sorin Ionescu
b159ddb02b Do not specify a bundler install path 2013-11-25 17:25:10 -05:00
Sebastian Wiesner
8ee6634c93 Do not define $GEM_HOME
Defining it breaks gems for all users who neither use RVM nor rbenv,
but have a different default Ruby version nonetheless.

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2013-08-25 22:24:42 -04:00
Sebastian Wiesner
0c9c099ac3 Add the RubyGems bin directory to PATH on other Unix systems
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2013-05-23 18:26:15 -04:00
Jeff Sandberg
29647947fe [Fix #335] Prevent rbenv from hashing gems at startup 2012-12-20 18:53:58 -05:00
Sorin Ionescu
8ff60ad956 [#297] Check for RVM and rbenv before returning 2012-09-25 13:03:54 -04:00
Sorin Ionescu
3ec4fff033 Refactor Ruby aliases 2012-08-27 18:31:53 -04:00
Sorin Ionescu
9a52ecb21b Increase heading readability 2012-08-04 14:48:32 -04:00
Sorin Ionescu
060d9064f8 [Fix #202] Load modules all or nothing 2012-08-04 14:32:59 -04:00
Sorin Ionescu
86d0086b56 [Fix #115] Add documentation for ruby 2012-06-12 23:23:22 -04:00
Sorin Ionescu
0165379143 Clarify comments in ruby module 2012-05-20 20:13:21 -04:00
Sorin Ionescu
a7340886b3 [#23] Rename plugins to modules 2012-04-05 13:39:40 -04:00