mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
Fix zsh in ssh session
This commit is contained in:
parent
59b965fe9b
commit
8869792211
1 changed files with 2 additions and 1 deletions
|
|
@ -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=<<<---,>>>---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue