Update kitty and zsh config: nvim termcat

This commit is contained in:
rydesun 2023-05-13 16:03:39 +08:00
parent c8bd293d7d
commit 3a14c8019f
2 changed files with 9 additions and 7 deletions

6
.zshrc
View file

@ -317,12 +317,12 @@ d() {
fi
}
# 需要搭配我的neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L3
# 需要搭配neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L4
# 使用neovim作为pager
alias v="nvim -R --cmd 'let paging=1'"
# 使用neovim作为pager支持ANSI code
alias V="nvim -R --cmd 'let paging=1 | let ansi=1'"
alias V="sh -c \"exec nvim 63<&0 </dev/null --cmd 'let termcat=63'\""
### 与kitty集成
if ((Z_ENV_KITTY)); then