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
c840c5b2
Commit
c840c5b2
authored
May 31, 2015
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[split] Move trout theme to oh-my-fish/theme-trout
https://github.com/oh-my-fish/theme-trout
parent
f37fb11f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
63 deletions
+0
-63
themes/trout/README.md
themes/trout/README.md
+0
-3
themes/trout/fish_prompt.fish
themes/trout/fish_prompt.fish
+0
-60
No files found.
themes/trout/README.md
deleted
100644 → 0
View file @
f37fb11f
A simple, but informative, prompt

themes/trout/fish_prompt.fish
deleted
100644 → 0
View file @
f37fb11f
# name: trout
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function _file_count
ls -1 | wc -l | sed 's/\ //g'
end
function fish_prompt
set -l last_status $status
set -l yellow (set_color yellow)
set -l red (set_color red)
set -l green (set_color green)
set -l magenta (set_color magenta)
set -l normal (set_color normal)
if [ (rbenv version-name) ]
set ruby_version (rbenv version-name)
set ruby_info "$red($ruby_version)$normal"
end
if [ (_git_branch_name) ]
set -l git_branch $magenta(_git_branch_name)
set git_info "$git_branch"
if [ (_is_git_dirty) ]
set git_info "$git_info$yellow*"
end
set git_info "$magenta($git_info$magenta)$normal"
end
if test $last_status = 0
set prompt " $green☆$normal "
else
set prompt " $red☆$normal "
end
echo -n -s $ruby_info $git_info $prompt
end
function fish_right_prompt
set -l blue (set_color blue)
set -l normal (set_color normal)
set -l path (pwd)
set -l count (_file_count)
set -l directory_info "($path ($count))"
set -l time (date '+%I:%M')
set -l time_info "$blue($time)$normal"
echo -n -s $directory_info $time_info
end
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