Comments (4)
ohmyzsh/ohmyzsh#4998 , ohmyzsh/ohmyzsh#4384 and ohmyzsh/ohmyzsh#6168 look doing same thing.
So I'll try them.
from setup.
The modification above did not work well, so I stop using rbenv plugin of zsh and use rbenv with itself.
It works well.
~/.zshrc
Deleted rbenv in this line
plugins=(gitfast brew rbenv last-working-dir common-aliases sublime zsh-syntax-highlighting history-substring-search)
Added this line
eval "$(rbenv init -)"
Restart terminal
which ruby #=> /Users/hidehiro/.rbenv/shims/ruby
from setup.
@hidehiro98 Thanks for reporting 🙏
Would that work for you?
ZSH=$HOME/.oh-my-zsh
# You can change the theme with another one:
# https://github.com/robbyrussell/oh-my-zsh/wiki/themes
ZSH_THEME="robbyrussell"
# Useful plugins for Rails development with Sublime Text
plugins=(gitfast brew last-working-dir common-aliases sublime zsh-syntax-highlighting history-substring-search)
# Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
export HOMEBREW_NO_ANALYTICS=1
# Actually load Oh-My-Zsh
source "${ZSH}/oh-my-zsh.sh"
# Load rbenv and add ruby version on prompt (float right)
if [ -x "$(command -v rbenv)" ]; then
eval "$(rbenv init -)";
RPS1='[$(ruby_prompt_info)]$EPS1';
fi
# Rails and Ruby uses the local `bin` folder to store binstubs.
# So instead of running `bin/rails` like the doc says, just run `rails`
# Same for `./node_modules/.bin` and nodejs
export PATH="./bin:./node_modules/.bin:${PATH}:/usr/local/sbin"
# Store your own aliases in the ~/.aliases file and load the here.
[[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases"
# Encoding stuff for the terminal
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
from setup.
This is ~/.zshrc
file I am actually using and it works file.
ZSH=$HOME/.oh-my-zsh
# You can change the theme with another one:
# https://github.com/robbyrussell/oh-my-zsh/wiki/themes
ZSH_THEME="robbyrussell"
# Add ruby version on prompt (float right)
if [ -x "$(command -v rbenv)" ]; then RPS1='[$(ruby_prompt_info)]$EPS1'; fi
# Useful plugins for Rails development with Sublime Text
plugins=(gitfast brew last-working-dir common-aliases sublime zsh-syntax-highlighting history-substring-search)
# Prevent Homebrew from reporting - https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md
export HOMEBREW_NO_ANALYTICS=1
# Actually load Oh-My-Zsh
source "${ZSH}/oh-my-zsh.sh"
# Rails and Ruby uses the local `bin` folder to store binstubs.
# So instead of running `bin/rails` like the doc says, just run `rails`
export PATH="./bin:${PATH}:/usr/local/sbin"
# Store your own aliases in the ~/.aliases file and load the here.
[[ -f "$HOME/.aliases" ]] && source "$HOME/.aliases"
# Encoding stuff for the terminal
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export BUNDLER_EDITOR="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
export BUNDLER_EDITOR="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
eval "$(rbenv init -)"
from setup.
Related Issues (20)
- separate lines HOT 1
- Suggestion: migrating nvm and rbenv to asdf instead HOT 1
- Pull request closed before resolution HOT 1
- Suggestion about `green WSL box` HOT 1
- `locale` command in Windows setup should be run in Ubuntu terminal, not CMD HOT 1
- pyenv homebrew and pip path HOT 4
- a
- Audit node / webpack / yarn from the setup HOT 1
- Slack test is not working anymore
- Locale section should specify Ubuntu terminal
- Setting `BROWSER` variable section is confusing right now HOT 7
- Set default ruby version 3.2.2
- Set default nodeJS 18.18.0 HOT 13
- Different postgresql message HOT 3
- Ruby VS extension is deprecated HOT 1
- Switch the Ruby vscode extension to Shopify's Ruby LSP HOT 2
- WINDOWS: fix warning "bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8) HOT 6
- Check the locale position HOT 1
- WARNING: npm install --global yarn HOT 4
- Add a note to setup instructions about 2fa with GitHub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup.