浏览代码

af-magic: make separator window-size-aware (#7739)

Marc Cornellà 4 年之前
父节点
当前提交
17f4cfca99
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      themes/af-magic.zsh-theme

+ 1 - 1
themes/af-magic.zsh-theme

@@ -6,7 +6,7 @@ if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
 local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
 
 # primary prompt
-PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
+PROMPT='$FG[237]${(l.COLUMNS..-.)}%{$reset_color%}
 $FG[032]%~\
 $(git_prompt_info) \
 $FG[105]%(!.#.»)%{$reset_color%} '