forked from misc/zsh-config
Fix for autocompletion padding while SSHing.
This commit is contained in:
parent
a823cc4772
commit
df4338d387
@ -14,7 +14,7 @@ EOF
|
|||||||
prompt_pztrn_setup () {
|
prompt_pztrn_setup () {
|
||||||
local -A vars
|
local -A vars
|
||||||
|
|
||||||
local p_date p_tty p_plat p_userpwd p_apm p_shlvlhist p_rc p_end p_win p_vcs
|
local p_date p_tty p_plat p_userpwd p_shlvlhist p_rc p_end p_win p_path
|
||||||
|
|
||||||
autoload -U colors
|
autoload -U colors
|
||||||
colors
|
colors
|
||||||
@ -24,7 +24,7 @@ prompt_pztrn_setup () {
|
|||||||
if [[ -n $SSH_TTY ]]; then
|
if [[ -n $SSH_TTY ]]; then
|
||||||
vars['brackets_start']="%{$fg[yellow]%}[%{$reset_color%}"
|
vars['brackets_start']="%{$fg[yellow]%}[%{$reset_color%}"
|
||||||
vars['brackets_end']="%{$fg[yellow]%}]%{$reset_color%}"
|
vars['brackets_end']="%{$fg[yellow]%}]%{$reset_color%}"
|
||||||
vars['console']="%{$vars['brackets_start']%}SSH%{$vars['brackets_end']%}"
|
vars['console']="$vars['brackets_start']SSH$vars['brackets_end']"
|
||||||
vars['default_color']="%{$fg[cyan]%}"
|
vars['default_color']="%{$fg[cyan]%}"
|
||||||
else
|
else
|
||||||
vars['brackets_start']="%{$fg[black]%}[%{$reset_color%}"
|
vars['brackets_start']="%{$fg[black]%}[%{$reset_color%}"
|
||||||
|
Loading…
Reference in New Issue
Block a user