IlanCosman / tide

🌊 The ultimate Fish prompt.
MIT License
2.74k stars 103 forks source link

Add icons for git item #502

Open johnr14 opened 2 months ago

johnr14 commented 2 months ago

Add the possibility to enable and disable git icons for repository status.

Description

Wanted icons for gits that can be changed with variables.

Icons can be changed by changing following variables :

tide_git_icon
tide_git_icon_conflicted
tide_git_icon_dirty 
tide_git_icon_spacer
tide_git_icon_staged 
tide_git_icon_stash 
tide_git_icon_untracked 
tide_git_icon_upstream_ahead
tide_git_icon_upstream_behind

Motivation and Context

This is to enable replacing * ~ + ! ? with nerd fonts symbols 󱉰    󰩌 Note: Open to other symbols !

Closes #349 Edit: Closes #239

Screenshots (if appropriate)

image Edit: no remote defined or github.com icon if remote is set to git@github.com image

How Has This Been Tested

Checklist

johnr14 commented 2 months ago

Edit: To pass tests, original code is used when tide_git_icon_true is not set.

Thanks

johnr14 commented 2 months ago

Added icon for github.com remote. Closes #239