Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
e4a5202d
Commit
e4a5202d
authored
Dec 23, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #247 from Fryie/ruby_version_bira
parents
699e221a
aee49875
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
themes/bira/README.md
themes/bira/README.md
+2
-3
themes/bira/fish_prompt.fish
themes/bira/fish_prompt.fish
+13
-0
themes/bira/screenshot.png
themes/bira/screenshot.png
+0
-0
No files found.
themes/bira/README.md
View file @
e4a5202d
...
@@ -3,10 +3,9 @@
...
@@ -3,10 +3,9 @@
Theme imported from Oh my ZSH: https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/bira.zsh-theme
Theme imported from Oh my ZSH: https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/bira.zsh-theme
Contains traces of nuts and code from other Oh my fish themes.
Contains traces of nuts and code from other Oh my fish themes.
Display username, hostname, current path and git status. Display the latest error status in the right prompt.
Display username, hostname, current path
, ruby version
and git status. Display the latest error status in the right prompt.


TODO:
TODO:
-
display Ruby version
-
display Python version
-
display Python version
themes/bira/fish_prompt.fish
View file @
e4a5202d
...
@@ -37,10 +37,23 @@ function __git_status
...
@@ -37,10 +37,23 @@ function __git_status
end
end
end
end
function __ruby_version
if type "rvm-prompt" > /dev/null
set ruby_version (rvm-prompt i v g)
else if type "rbenv" > /dev/null
set ruby_version (rbenv version-name)
else
set ruby_version "system"
end
echo -n (set_color red) ‹$ruby_version› (set_color normal)
end
function fish_prompt
function fish_prompt
echo -n (set_color white)"╭─"(set_color normal)
echo -n (set_color white)"╭─"(set_color normal)
__user_host
__user_host
__current_path
__current_path
__ruby_version
__git_status
__git_status
echo -e ''
echo -e ''
echo (set_color white)"╰─"(set_color --bold white)"\$ "(set_color normal)
echo (set_color white)"╰─"(set_color --bold white)"\$ "(set_color normal)
...
...
themes/bira/screenshot.png
deleted
100644 → 0
View file @
699e221a
30.1 KB
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