Skip to content

Instantly share code, notes, and snippets.

@OlivierLDff
Last active April 14, 2024 09:19
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save OlivierLDff/766ea2be17e35fb7794f2a2a9ab5fb44 to your computer and use it in GitHub Desktop.
Save OlivierLDff/766ea2be17e35fb7794f2a2a9ab5fb44 to your computer and use it in GitHub Desktop.
πŸš€ Git Bash Emojis (Windows)

Open git bash with admin privilege.

cd "C:/Program Files/Git/usr/share/mintty"
mkdir -p emojis
cd emojis
curl https://raw.githubusercontent.com/wiki/mintty/mintty/getemojis > getemojis
./getemojis -d

Then edit settings via gui:

image

Or .minttyrc (only EmojiPlacement & Emojis are relevant):

Transparency=low
BackgroundColour=29,37,46
Font=Fira Mono for Powerline
Columns=120
Rows=32
FontHeight=10
ThemeFile=dracula
EmojiPlacement=middle
Emojis=windows
Locale=
Charset=

Success: image

@DmitryUrsa
Copy link

Emojis took a while to load, but now they are working!
Thank you for this guide πŸ‘

@rlaker
Copy link

rlaker commented Jan 26, 2022

Thanks! πŸ˜€

@charbelsako
Copy link

Didn't work for me, could use some help

@OlivierLDff
Copy link
Author

Welcome to windows where there is thousand of reason it didn't work ^^ Good luck

@erbanku
Copy link

erbanku commented Aug 22, 2022

Works for me, but why the emoji flashes?
ShareX_2022-08-22_22-58-46_Monday_Window

@OlivierLDff
Copy link
Author

Just use the new windows terminal where everything words out of the box

@erbanku
Copy link

erbanku commented Aug 23, 2022

Just use the new windows terminal where everything words out of the box

OK, thanks.

@stephyswe
Copy link

where is the last thing? the gui or minttyrc ?

@OlivierLDff
Copy link
Author

As you want, the GUI edit the minttyrc file

@DanielErnany
Copy link

How do I access the mintty GUI?

@shift-tyson
Copy link

How do I access the mintty GUI?

Right-click the Git Bash window and select 'Options' from the context menu.

@DanielErnany
Copy link

How do I access the mintty GUI?

Right-click the Git Bash window and select 'Options' from the context menu.

Thanks !!

@DanielErnany
Copy link

DanielErnany commented Jan 30, 2023

I did everything step by step but still the emojis are not shown :

image

@OlivierLDff
Copy link
Author

:tada: is ascii character, not emoji so you see ascii characters. if you type πŸŽ‰ you will it for sure.
If you want :tada: to be rendered as πŸŽ‰, use a software that do the translation for you, the issue is not in the terminal.

@DanielErnany
Copy link

:tada: is ascii character, not emoji so you see ascii characters. if you type πŸŽ‰ you will it for sure. If you want :tada: to be rendered as πŸŽ‰, use a software that do the translation for you, the issue is not in the terminal.

I didn't know, I thought that because gitmoji runs in the terminal, the emojis will be in a format that the terminal can understand.

@BastiQ
Copy link

BastiQ commented Oct 6, 2023

Not sure why, but for me, it was enough to add the following two lines to my ~/.bash_profile without the need to install any emojis. Not sure if this will provide you with all unicode.org emojis, though. Probably not. For me, it was a simple fix so I wanted to share it anyways.

export PYTHONIOENCODING=UTF-8
chcp.com 65001

@thestoneoflapiz
Copy link

I followed everything, but nothing worked... help

@OlivierLDff
Copy link
Author

Just use windows terminal :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment