-1

I want to run this command:

chcp.com 1253

permantly in msys2 terminal.

I don't want to write this command every time a msys2 mingw 64 terminal is open.

Χρήστος Παππάς@DESKTOP-8T1C1VF MINGW64 ~
$ cd /c/Users/Χρήστος\ Παππάς/Desktop/

Χρήστος Παππάς@DESKTOP-8T1C1VF MINGW64 /c/Users/Χρήστος Παππάς/Desktop
$ python ελληνικά.py
▒▒▒▒▒▒▒▒

Χρήστος Παππάς@DESKTOP-8T1C1VF MINGW64 /c/Users/Χρήστος Παππάς/Desktop
$ chcp.com 1253
Active code page: 1253

Χρήστος Παππάς@DESKTOP-8T1C1VF MINGW64 /c/Users/Χρήστος Παππάς/Desktop
$ python ελληνικά.py
Εληννικά

Χρήστος Παππάς@DESKTOP-8T1C1VF MINGW64 /c/Users/Χρήστος Παππάς/Desktop
$

Thanks in advance, Chris Pappas

Chris P
  • 2,059
  • 4
  • 34
  • 68

1 Answers1

0
  1. Run vim ~/.bashsrc
  2. Press I key (goes from read mode to insert mode for edit the file)
  3. Move at the bottom of the file and type chcp.com 1253
  4. Then press Esc, w key, q key, ! key and press Enter

That's it. Every time I open the msys console i see something like:

Active code page: 1253

Χρήστος Παππάς@DESKTOP-8T1C1VF MSYS /c/Users/Χρήστος Παππάς/Documents/projects/Papinhio player

Chris P
  • 2,059
  • 4
  • 34
  • 68