Allow git glyphs customization
This commit is contained in:
@@ -9,7 +9,7 @@ A minimal theme with a clean git prompt
|
||||
* Current git info
|
||||
* Last command exit code (only shown when the exit code is greater than 0)
|
||||
|
||||
## Font
|
||||
## Fonts and glyphs
|
||||
|
||||
A font with SCM glyphs is required to display the default tool/host logos.
|
||||
You can use a font from https://www.nerdfonts.com/ or patch your own font with the tool
|
||||
@@ -17,6 +17,26 @@ provided by https://github.com/ryanoasis/nerd-fonts.
|
||||
|
||||
You can also override the default variables if you want to use different glyphs or standard ASCII characters.
|
||||
|
||||
### Default theme glyphs
|
||||
|
||||
```bash
|
||||
SCM_GIT_CHAR_GITLAB=' '
|
||||
SCM_GIT_CHAR_BITBUCKET=' '
|
||||
SCM_GIT_CHAR_GITHUB=' '
|
||||
SCM_GIT_CHAR_DEFAULT=' '
|
||||
SCM_GIT_CHAR_ICON_BRANCH=''
|
||||
EXIT_CODE_ICON=' '
|
||||
```
|
||||
|
||||
### Customize glyphs
|
||||
|
||||
Define your custom glyphs before sourcing bash-it:
|
||||
|
||||
```bash
|
||||
SCM_GIT_CHAR_GITHUB='•'
|
||||
source "$BASH_IT"/bash_it.sh
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
### Clean
|
||||
@@ -30,3 +50,4 @@ You can also override the default variables if you want to use different glyphs
|
||||
```bash
|
||||
~/.dotfiles on master ⤏ origin ↑2 •7 ✗ ❯
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user