File tree 5 files changed +13
-4
lines changed
5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
> Any trouble, please visit the [ troubleshooting page] ( https://github.com/diogocavilha/fancy-git/blob/master/TROUBLESHOOTING.md )
4
4
5
+ ## v7.5.5
6
+ - Add more icon overrides using the ` FANCYGIT_ICON_GIT_REPO ` and ` FANCYGIT_ICON_VENV ` environment variables.
7
+
5
8
## v7.5.4
6
9
- Fix double space after branch name when using human theme and double line mode is disabled.
7
10
Original file line number Diff line number Diff line change @@ -266,6 +266,9 @@ FANCYGIT_ICON_LOCAL_REMOTE_BRANCH=""
266
266
Here you can see a list of available environment variables FancyGit will search and replace:
267
267
268
268
``` sh
269
+ # Path is a git repository
270
+ FANCYGIT_ICON_GIT_REPO
271
+
269
272
# Only local branch icon.
270
273
FANCYGIT_ICON_LOCAL_BRANCH
271
274
@@ -289,6 +292,9 @@ FANCYGIT_ICON_HAS_ADDED_FILES
289
292
290
293
# Unpushed commits.
291
294
FANCYGIT_ICON_HAS_UNPUSHED_COMMITS
295
+
296
+ # Path is a python virtual environment
297
+ FANCYGIT_ICON_VENV
292
298
```
293
299
294
300
# Contributors ✨
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ __has_conda_env() {
162
162
__fancygit_get_venv_icon () {
163
163
local icon_venv
164
164
165
- icon_venv=" "
165
+ icon_venv=" ${FANCYGIT_ICON_VENV :- } "
166
166
167
167
if [[ -n $VIRTUAL_ENV ]] || __has_conda_env
168
168
then
@@ -300,4 +300,4 @@ fancygit_theme_set() {
300
300
tput setaf 3
301
301
printf " \n> Please reload the bash config file or close and open the terminal again.\n\n"
302
302
tput sgr0
303
- }
303
+ }
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ fancygit_theme_builder() {
63
63
local separator
64
64
separator=$( fancygit_config_get " separator" " " )
65
65
66
- local icon_git_repo=" "
66
+ local icon_git_repo=" ${FANCYGIT_ICON_GIT_REPO :- } "
67
67
local user=" ${user_color_font_tag} "
68
68
local at=" ${at_color_font_tag} "
69
69
local host=" ${host_color_font_tag} "
Original file line number Diff line number Diff line change 3
3
# Author: Diogo Alexsander Cavilha <[email protected] >
4
4
# Date: 11.17.2017
5
5
6
- export FANCYGIT_VERSION=" 7.5.4 "
6
+ export FANCYGIT_VERSION=" 7.5.5 "
You can’t perform that action at this time.
0 commit comments