Zsh の Less と同様の強調表示を Ubuntu で Bash の Less よりも取得するにはどうすればよいですか?
OS X から Ubuntu に切り替えました。My Less が Zsh で期待どおりに動作しません。
私の Less のマニュアルは、次のコードの有無にかかわらず、緑と黒です。
# comment these out in Ubuntu
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;33;146m' # begin underline is now yellow
# | | |
# | |----------------- yellow
# |-------------------- underline
# to have the indication of cursor's location and line numbers, and R
export LESS="-mNR"
# |--------- only ASCII color
このコードにより、OS X でマニュアルが読めるようになりますが、Zsh の Ubuntu では機能しません。
Ubuntu には、Bash の Less での優れた強調表示があります。私のマニュアルには、コードなしで Bash の色が黄色、緑、および黒になっています。Zsh と Bash はどちらも同じ Less at を使用し/usr/bin/less
ます。これは、Ubuntu の Bash には、どこかに設定するドット ファイルがいくつかあることを示唆しています。
Bash での Ubuntu の Less の強調表示はどこにありますか?