Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
c189e8b4
Unverified
Commit
c189e8b4
authored
Dec 09, 2022
by
Dan Wallis
Committed by
GitHub
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(agnoster): add remote-tracking status to prompt (#7209)
parent
cc5100d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
agnoster.zsh-theme
themes/agnoster.zsh-theme
+11
-0
No files found.
themes/agnoster.zsh-theme
View file @
c189e8b4
...
...
@@ -116,6 +116,17 @@ prompt_git() {
prompt_segment green
$CURRENT_FG
fi
local
ahead behind
ahead
=
$(
git log
--oneline
@
{
upstream
}
.. 2>/dev/null
)
behind
=
$(
git log
--oneline
..@
{
upstream
}
2>/dev/null
)
if
[[
-n
"
$ahead
"
]]
&&
[[
-n
"
$behind
"
]]
;
then
PL_BRANCH_CHAR
=
$'
\u
21c5'
elif
[[
-n
"
$ahead
"
]]
;
then
PL_BRANCH_CHAR
=
$'
\u
21b1'
elif
[[
-n
"
$behind
"
]]
;
then
PL_BRANCH_CHAR
=
$'
\u
21b0'
fi
if
[[
-e
"
${
repo_path
}
/BISECT_LOG"
]]
;
then
mode
=
" <B>"
elif
[[
-e
"
${
repo_path
}
/MERGE_HEAD"
]]
;
then
...
...
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