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
c3ca7d21
Commit
c3ca7d21
authored
Aug 03, 2014
by
Joseph Tannhuber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git ahead behind bug fixed
parent
7272e4eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
themes/budspencer/fish_right_prompt.fish
themes/budspencer/fish_right_prompt.fish
+14
-12
No files found.
themes/budspencer/fish_right_prompt.fish
View file @
c3ca7d21
...
...
@@ -68,6 +68,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
if test $is_repo="true"
set -l git_ahead_behind (__budspencer_is_git_ahead_or_behind)
if test (count $git_ahead_behind) -eq 2
if test $git_ahead_behind[1] -gt 0
if test $git_style = "symbols"
set git_prompt (set_color -o $budspencer_colors[10])" ↑"
...
...
@@ -83,6 +84,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[10])" "$git_ahead_behind[2]
end
end
end
set -l git_status (__budspencer_git_status)
if test $git_status[1] -gt 0
...
...
@@ -141,7 +143,7 @@ function fish_git_prompt_cm --description "Displays the git symbols"
set git_prompt $git_prompt(set_color -o $budspencer_colors[16])" "$git_stashed
end
end
echo $git_prompt
echo
-n
$git_prompt
end
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