diff --git a/Shell-aliases.md b/Shell-aliases.md index d1fa854..8804447 100644 --- a/Shell-aliases.md +++ b/Shell-aliases.md @@ -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`: