LoginSignup
2
1

More than 5 years have passed since last update.

LANG=ja_JP.UTF8でeucjpで書かれたものをlessしたいとき

Posted at
.zshrc.part
# lessがeucjp扱えなくて死にたいのでlvで全部まかなう
export PAGER='lv'
export LV='-Ou8'
alias less='lv'
alias source-highlight='source-highlight --failsafe'
function lvc() {
    source-highlight --infer-lang -f esc --style-file=esc.style -o STDOUT -i $1 | /usr/bin/lv -c
}
alias lv='lvc'

ポイントはlvc内でのlvをフルパスで書く。そうしないと再起呼び出ししまくりでしスタック食いつぶす

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1