File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-rbenv-install Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1111 git clone https://github.com/rbenv/rbenv.git ~/.rbenv
1212fi
1313
14- # Needs the - because it's being run in a script
15- ~/.rbenv/bin/rbenv init -
14+ # This will add `eval "$(~/.rbenv/bin/rbenv init - --no-rehash zsh)"` to the ~/.zshrc file
15+ echo 'Initializing rbenv'
16+ ~/.rbenv/bin/rbenv init
1617
1718if ! command -v zsh >/dev/null 2>&1; then
1819 echo "**** zsh not installed, skipping shell completions setup ****"
2122 if ! grep -q 'FPATH=~/.rbenv/completions:"$FPATH"' ~/.zshrc; then
2223 echo 'Adding shell completions to zsh for rbenv'
2324
25+ echo '\n# For rbenv shell completions' >> ~/.zshrc
2426 echo 'FPATH=~/.rbenv/completions:"$FPATH"' >> ~/.zshrc
2527 echo 'autoload -U compinit' >> ~/.zshrc
2628 echo 'compinit' >> ~/.zshrc
3032 else
3133 echo '~/.zshrc not found, creating one with the shell completions'
3234
35+ echo '\n# For rbenv shell completions' >> ~/.zshrc
3336 echo 'FPATH=~/.rbenv/completions:"$FPATH"' >> ~/.zshrc
3437 echo 'autoload -U compinit' >> ~/.zshrc
3538 echo 'compinit' >> ~/.zshrc
You can’t perform that action at this time.
0 commit comments