adjust prompt fonts for bitmap font compatibility
This commit is contained in:
parent
4c237059da
commit
4335f88360
1 changed files with 6 additions and 6 deletions
|
@ -235,7 +235,7 @@ class LoginPart(Part):
|
|||
else:
|
||||
self.fragments.append(style_color(COLOR_SESSION_LOCAL))
|
||||
|
||||
sign = " ⇄ " if is_remote else "@"
|
||||
sign = "⮂" if is_remote else "@"
|
||||
self.fragments.append(sign)
|
||||
|
||||
# hostname
|
||||
|
@ -438,7 +438,7 @@ class WineprefixPart(Part):
|
|||
arch = os.getenv("WINEARCH")
|
||||
|
||||
if wineprefix:
|
||||
self.fragments.append("♿ ")
|
||||
self.fragments.append(" ")
|
||||
|
||||
self.fragments.append(style_color(COLOR_OK if os.path.isdir(wineprefix) else COLOR_ERROR))
|
||||
self.fragments.append(os.path.basename(wineprefix))
|
||||
|
@ -465,7 +465,7 @@ class TimeBudget:
|
|||
|
||||
class GitPart(Part):
|
||||
"""
|
||||
↘2 ↗4 ⚠M master ?11 ✎6 ✉10
|
||||
branchname ↘2 ↗4 ⚠M master ?11 *6 10
|
||||
|
||||
- 2 commits are available for pulling (remote is ahead)
|
||||
- 4 commits are available for pushing (local is ahead)
|
||||
|
@ -486,7 +486,7 @@ class GitPart(Part):
|
|||
branch_name = command("git name-rev --name-only --no-undefined --always HEAD", tb.trem).strip()
|
||||
|
||||
if branch_name:
|
||||
self.fragments.append("↱ ")
|
||||
self.fragments.append("")
|
||||
|
||||
count_to_pull = command("git log --oneline ..@{u}", tb.trem).count("\n")
|
||||
count_to_push = command("git log --oneline @{u}..", tb.trem).count("\n")
|
||||
|
@ -520,11 +520,11 @@ class GitPart(Part):
|
|||
|
||||
if modified:
|
||||
self.fragments.append(style_color(COLOR_GIT_MODIFIED))
|
||||
self.fragments.append(" ✎%d" %(modified))
|
||||
self.fragments.append(" *%d" %(modified))
|
||||
|
||||
if staged:
|
||||
self.fragments.append(style_color(COLOR_GIT_STAGED))
|
||||
self.fragments.append(" ✉%d" %(staged))
|
||||
self.fragments.append(" %d" %(staged))
|
||||
|
||||
self.fragments.append(style_reset())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue