Skip to content

Commit

Permalink
Update git short sha display to match lib/git.zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ttelford committed Aug 1, 2024
1 parent 2c73207 commit 9a91aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/ttelford.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ local middle_prompt='$(middle_prompt_info)'
local bottom_prompt='$(bottom_prompt_info)'
function cond_newline_git_sha()
{
short_sha=$(git_prompt_short_sha)
if [[ -n ${short_sha} ]]
local is_repo=$(command git rev-parse --short HEAD 2> /dev/null)
if [[ -n ${is_repo} ]]
then
echo "$(middle_prompt_info)$(git_prompt_short_sha)"
fi
Expand Down

0 comments on commit 9a91aeb

Please sign in to comment.