1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Add section on unicode warning on Windows Git-Bash

Leonardo Valeri Manera 2024-07-22 03:44:58 +02:00
parent f34cb44e5b
commit 066da4224a

@ -5,6 +5,18 @@ Add this alias to `.bashrc` or `.bash_profile` (for OSX):
eval "$(thefuck --alias)"
```
To overcome Python unicode warning on your unicode Windows Git-Bash console:
```bash
C:\Dev\Python\Lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'cp1252', readline hook consumer may assume they are the same
readline_hook.enable(use_pyreadline=use_pyreadline)
```
Add this line **before** the line above in your `~/.bashrc` on Windows:
```bash
export PYTHONIOENCODING="utf-8"
```
# ZSH
Add this alias to `.zshrc`: