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
4188b22a
Unverified
Commit
4188b22a
authored
Jul 25, 2023
by
jabunovoty
Committed by
GitHub
Jul 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(agnoster): add git tag to prompt (#8417)
Co-authored-by:
Jakub Novotny
<
jakub.novotny@deutsche-boerse.com
>
parent
e5647939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
agnoster.zsh-theme
themes/agnoster.zsh-theme
+3
-1
No files found.
themes/agnoster.zsh-theme
View file @
4188b22a
...
...
@@ -109,7 +109,9 @@ prompt_git() {
if
[[
"
$(
git rev-parse
--is-inside-work-tree
2>/dev/null
)
"
=
"true"
]]
;
then
repo_path
=
$(
git rev-parse
--git-dir
2>/dev/null
)
dirty
=
$(
parse_git_dirty
)
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
ref
=
"➦
$(
git rev-parse
--short
HEAD 2> /dev/null
)
"
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
\
ref
=
"◈
$(
git describe
--exact-match
--tags
HEAD 2> /dev/null
)
"
||
\
ref
=
"➦
$(
git rev-parse
--short
HEAD 2> /dev/null
)
"
if
[[
-n
$dirty
]]
;
then
prompt_segment yellow black
else
...
...
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