사용자 도구

사이트 도구


linux:bat

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:bat [2020/09/26 15:25]
kwon37xi
linux:bat [2024/06/11 10:12] (현재)
kwon37xi
줄 19: 줄 19:
 </code> </code>
  
 +===== MANPAGER =====
 +  * ''man'' 명령 출력기로 사용가능
 +  * https://github.com/sharkdp/bat ''README.md'' 참조
 +
 +<code sh>
 +export MANPAGER="sh -c 'col -bx | batcat -l man -p'"
 +
 +# 단, col 명령 특정 버전부터 색깔 관련 코드가 다 깨져 나오는 현상 발생. 아래 또 추가
 +export MANROFFOPT='-c'
 +</code>
 +  * ''col'' 명령 특정 버전부터 색깔 코드 깨져 나오는 이슈 및 해결책 - [[https://github.com/sharkdp/bat/issues/2593| man page display does not work correctly #2593 ]]
 +    * 추후 ''MANROFFOPT'' 가 불필요해질지도.
 +
 +===== extras =====
 +  * https://github.com/eth-p/bat-extras : 각종 확장
   * [[https://github.com/eth-p/bat-extras/blob/master/doc/batgrep.md|batgrep]] [[linux:ripgrep|ripgrep]]과 조합   * [[https://github.com/eth-p/bat-extras/blob/master/doc/batgrep.md|batgrep]] [[linux:ripgrep|ripgrep]]과 조합
  
linux/bat.1601101508.txt.gz · 마지막으로 수정됨: 2020/09/26 15:25 저자 kwon37xi