dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d6384698bb5ad5079b494dc7d41d4e270eeb97a3
parent c04c6d0fddc5f0e99c2ec8ae27b36d936c8bf508
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat,  8 Dec 2018 17:26:48 +0100

Fix formatting error when changing to normal mode

Diffstat:
Mlinks/.zshrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -166,11 +166,11 @@ git_modified() { } -prompt_with_vimode() { +function prompt_with_vimode { echo -ne '\n' echo -n '%(1j.%{$fg[yellow]%}%jbg %{$reset_color%}.)' # background jobs echo -n "$1" - [ "$1" == "" ] && # show prompt symbol if no insert/normal mode is passed + [ -z "$1" ] && # show prompt symbol if no insert/normal mode is passed echo -n '%(!.%{$fg_bold[red]%}#.%{$fg[green]%}$)%{$reset_color%}' echo -n '%{$reset_color%} ' }