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 Nov 27, 2023
1 parent e83e67f commit 8084cfe
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 8084cfe

Please sign in to comment.