Windows용 Console

Windows에 기본으로 제공하는 콘솔앱인 ‘cmd’는 사용이 불편하다. cmd를 대체할만한 툴 알아봤다.

ConsoleZ

ConsoleZConsole에서 fork되어 개선된 콘솔앱이다. 멀티탭과 화면분할, 각 화면별 백그라운드 스타일 지정등 다양한 기능을 제공하는데 macOS의 iTerm2와 비슷한 느낌을 준다.

ConsoleZ 설치하기

Scoop을 사용하여 설치한다.

scoop search consolez

C:\Users\Administrator>scoop search consolez
Results from other known buckets...
(add them using 'scoop bucket add <name>')

'extras' bucket:
    consolez

scoop bucket add extras

C:\Users\Administrator>scoop bucket add extras
Git is required for buckets. Run 'scoop install git'.

scoop install git

C:\Users\Administrator>scoop install git
Installing 'git' (2.15.1.windows.1).
PortableGit-2.15.1-64-bit.7z.exe (36.1 MB) [==========================] 100%
Checking hash of PortableGit-2.15.1-64-bit.7z.exe... ok.
Extracting... done.
Linking ~\scoop\apps\git\current => ~\scoop\apps\git\2.15.1.windows.1
Creating shim for 'git'.
Creating shim for 'gitk'.
Creating shim for 'git-gui'.
Creating shim for 'tig'.
Creating shim for 'git-bash'.
Running post-install script...
'git' (2.15.1.windows.1) was installed successfully!
Notes
-----
To get Git to recognise OpenSSH, you will need to run

scoop install openssh
[environment]::setenvironmentvariable('GIT_SSH', (resolve-path (scoop which
ssh)), 'USER')

and then restart powershell.

scoop bucket add extras

C:\Users\Administrator>scoop bucket add extras
Checking repo... ok
Cloning into 'C:\Users\Administrator\scoop\buckets\extras'...
remote: Counting objects: 6495, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 6495 (delta 37), reused 64 (delta 28), pack-reused 6418
Receiving objects: 100% (6495/6495), 1.42 MiB | 168.00 KiB/s, done.
Resolving deltas: 100% (3834/3834), done.
The extras bucket was added successfully.

scoop install consolez

C:\Users\Administrator> scoop install consolez
Installing 'consolez' (1.18.2.17272).
Loading ConsoleZ.x64.1.18.2.17272.zip from cache
Checking hash of ConsoleZ.x64.1.18.2.17272.zip... ok.
Extracting... done.
Linking ~\scoop\apps\consolez\current => ~\scoop\apps\consolez\1.18.2.17272
Creating shim for 'console'.
Creating shortcut for ConsoleZ (console.exe)
'consolez' (1.18.2.17272) was installed successfully!

설치후 한글로 인해 화면이 깨질때 다음 절차를 따라해본다.

  1. 레지스트리 편집기(regedit.exe) 를 실행후, HKEY_CURRENT_USER\Console 키를 찾아서, subkey 이름이 “Console2 command window” 가 있다면, 이것을 삭제한다.
  2. 제어판을 열고, ‘국가 및 언어’ 를 실행한다. 관리자 옵션(또는 고급) 탭을 선택후, ‘유니코드를 지원하지 않는 프로그램용 언어’ 에 한국어(대한민국) 으로 되어 있으면 그대로, 그렇지 않으면, ‘시스템 로캘 변경’ 을 눌러 한국어를 선택한다. 변경사항이 있으면 윈도우 재부팅을 해야 한다.
  3. consoleZ 를 실행(console.exe)후, 메뉴에 ‘View - Console’ 를 선택한다. 새로운 콘솔창 제목바에서 마우스 우측버튼을 눌러 속성을 선택한다. 글꼴 탭을 선택후, 글꼴을 굴림체로, 크기는 보통 11 이나 12 정도 로 설정하고 확인 버튼을 누른다. 창을 닫고, console.exe 를 재시작하면 이제 제대로 화면 출력이 됨을 확인한다.

유용한 패키지

정리

ConsoleZ는 CMD대체 앱일뿐 *nix방식으로 사용할 수 있는것은 아니다. 윈도우를 *nix방식으로 사용하길 원한다면 Babun, MinGW을 살펴보기 바란다.

ConEmu

Cmder

ConEmu를 기반으로 하며 UI가 향상되었다.

References

References

comments powered by Disqus