Skip to content

Commit 5c73de8

Browse files
committed
✨ Add new fonts
New fonts added: - DejaVu-Sans-Mono-Nerd-Font-Complete.ttf - DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf - JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf - JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf
1 parent 674c5e8 commit 5c73de8

6 files changed

+17
-9
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ curl -sS https://raw.githubusercontent.com/diogocavilha/fancy-git/master/uninsta
2828

2929
# :heavy_check_mark: After installing
3030

31-
1. Change your terminal font to **Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf**.
32-
It's necessary only if you're using one of the fancy styles for rendering the icons properly.
33-
If you can't find the font, it's still possible to install it manually by running `fancygit --fonts-install` or even installing the ttf file which is placed at `~/.fancy-git/fonts/Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf`.
31+
1. Change your terminal font to one of these fonts:
32+
- **Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf**.
33+
- **DejaVu-Sans-Mono-Nerd-Font-Complete.ttf**.
34+
- **DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf**.
35+
- **JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf**.
36+
- **JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf**.
37+
It's necessary for rendering icons/symbols properly.
38+
If you can't find the font, it's still possible to install it manually by running `fancygit --fonts-install` or even installing the ttf file which is placed at `~/.fancy-git/fonts/`.
3439
2. Restart your terminal.
3540

3641
Run `fancygit -h` to check FancyGit help.
Binary file not shown.
1.12 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

install.sh

+9-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
#
66
# Fancygit installation script.
77

8-
fg_os=$(uname)
8+
FANCYGIT_RUNNING_OS=$(uname)
9+
FANCYGIT_GIT_PATH=$(whereis git | cut -d ":" -f 2)
910

10-
git_path=`whereis git | cut -d ":" -f 2`
11-
12-
if [ "$git_path" = "" ]; then
11+
if [ "$FANCYGIT_GIT_PATH" = "" ]; then
1312
echo ""
1413
echo " ⚠ Please install git before running this command."
1514
echo ""
@@ -18,7 +17,7 @@ fi
1817

1918
git clone https://github.com/diogocavilha/fancy-git.git ~/.fancy-git
2019

21-
if [ "$fg_os" = "Linux" ]; then
20+
if [ "$FANCYGIT_RUNNING_OS" = "Linux" ]; then
2221
cp -f ~/.bashrc ~/.bashrc.backup
2322
echo "" >> ~/.bashrc
2423
echo ". ~/.fancy-git/prompt.sh" >> ~/.bashrc
@@ -31,7 +30,7 @@ if [ "$fg_os" = "Linux" ]; then
3130
echo "$current_date" > ~/.fancy-git/last_update_at
3231
fi
3332

34-
if [ "$fg_os" = "Darwin" ]; then
33+
if [ "$FANCYGIT_RUNNING_OS" = "Darwin" ]; then
3534
cp -f ~/.bash_profile ~/.bash_profile.backup
3635
echo "" >> ~/.bash_profile
3736
echo ". ~/.fancy-git/prompt.sh" >> ~/.bash_profile
@@ -43,4 +42,8 @@ fi
4342
mkdir -p ~/.fonts
4443
cp -i ~/.fancy-git/fonts/SourceCodePro+Powerline+Awesome+Regular.ttf ~/.fonts
4544
cp -i ~/.fancy-git/fonts/Sauce-Code-Pro-Nerd-Font-Complete-Windows-Compatible.ttf ~/.fonts
45+
cp -i ~/.fancy-git/fonts/DejaVu-Sans-Mono-Nerd-Font-Complete.ttf ~/.fonts
46+
cp -i ~/.fancy-git/fonts/DejaVu-Sans-Mono-Nerd-Font-Complete-Mono.ttf ~/.fonts
47+
cp -i ~/.fancy-git/fonts/JetBrains-Mono-Regular-Nerd-Font-Complete-Mono.ttf ~/.fonts
48+
cp -i ~/.fancy-git/fonts/JetBrains-Mono-Medium-Nerd-Font-Complete-Mono.ttf ~/.fonts
4649
fc-cache -fv

0 commit comments

Comments
 (0)