Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
8a887c50
Commit
8a887c50
authored
Dec 31, 2013
by
LFDM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Joins ruby prompt files and adds ruby_prompt_info.
parent
7aa76616
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
chruby.zsh
lib/chruby.zsh
+0
-4
rbenv.zsh
lib/rbenv.zsh
+0
-4
ruby_prompts.zsh
lib/ruby_prompts.zsh
+22
-0
No files found.
lib/chruby.zsh
deleted
100644 → 0
View file @
7aa76616
# using the chruby plugin will override this with a real implementation
function
chruby_prompt_info
()
{
return
1
}
lib/rbenv.zsh
deleted
100644 → 0
View file @
7aa76616
# using the rbenv plugin will override this with a real implementation
function
rbenv_prompt_info
()
{
return
1
}
lib/r
vm
.zsh
→
lib/r
uby_prompts
.zsh
View file @
8a887c50
# get the name of the ruby version
# get the name of the r
vm r
uby version
function
rvm_prompt_info
()
{
[
-f
$HOME
/.rvm/bin/rvm-prompt
]
||
return
1
local
rvm_prompt
...
...
@@ -6,3 +6,17 @@ function rvm_prompt_info() {
[[
"
${
rvm_prompt
}
x"
==
"x"
]]
&&
return
1
echo
"
${
ZSH_THEME_RVM_PROMPT_PREFIX
:
=(
}${
rvm_prompt
}${
ZSH_THEME_RVM_PROMPT_SUFFIX
:
=)
}
"
}
# using the rbenv plugin will override this with a real implementation
function
rbenv_prompt_info
()
{
return
1
}
# using the chruby plugin will override this with a real implementation
function
chruby_prompt_info
()
{
return
1
}
function
ruby_prompt_info
()
{
echo
$(
rvm_prompt_info
||
rbenv_prompt_info
||
chruby_prompt_info
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment