From 8869792211a3f4776b5042321ee7ba9c9670cccf Mon Sep 17 00:00:00 2001 From: rydesun Date: Mon, 9 Mar 2020 16:48:26 +0800 Subject: [PATCH] Fix zsh in ssh session --- .config/zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 5d637e8..8ae73e2 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -103,7 +103,7 @@ if [[ -z ${_SPEC_PROMPT_disable_icon} ]]; then _icon_gitdir="  " fi -ZLE_RPROMPT_INDENT=0 # 去掉右提示符右侧多余空白 +ZLE_RPROMPT_INDENT=-1 # 去掉右提示符右侧多余空白 precmd() { # 上一条命令的运行结果 if [ $? -ne 0 ]; then @@ -183,6 +183,7 @@ alias es='nvim -S' && compdef es=nvim alias g='git' && compdef g=git alias py='python' && compdef py=python alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' && compdef config=git +alias ssh='TERM=xterm-256color ssh' # >>>----------------------------------- # vim: foldmethod=marker:foldmarker=<<<---,>>>---