]> git.sev.monster Git - dotfiles.git/blobdiff - etc/zsh/functions/Prompts/prompt_arrows_setup
zshrc: add more git stash aliases
[dotfiles.git] / etc / zsh / functions / Prompts / prompt_arrows_setup
index f0bcfeada05a1d2010d73382e7ff302970022593..991332dd7df9138c3f036c725e7000fb18909727 100644 (file)
@@ -68,11 +68,11 @@ function prompt_arrows_setup() {
             PROMPT="%F{$c}>>> $hist"
             ;;
         *)
-            echo "Unknown prompt mode $m"
+            echo -E "Unknown prompt mode $m"
             return
             ;;
     }
-    PROMPT="$PROMPT%(1j,%F{$c}%j,)$vicol%#%F{$p}%n%F{$n}@%F{$p}%2m%(?..%F{$n}/%F{$r}\$?)%F{$n}: "
+    PROMPT="$PROMPT%(1j,%F{$c}%j,)$vicol%#%F{$p}%n%F{$n}@%F{$p}%2m%(?..%F{$n}/%F{$r}%?)%F{$n}: "
     POSTEDIT="$(print -P "%F{$n}%f")"
     autoload -Uz vcs_info
     zstyle ':vcs_info:git*' get-revision true
@@ -105,15 +105,15 @@ function prompt_arrows_precmd {
 }
 
 function prompt_arrows_preview {
-  if (( ! $#* )); then
-    prompt_preview_theme arrows 2line
-    print '\n'
-    prompt_preview_theme arrows right
-    print
-  else
-    prompt_preview_theme arrows "$@"
-    print
-  fi
+    if (( ! $#* )) {
+        prompt_preview_theme arrows 2line
+        print '\n'
+        prompt_preview_theme arrows right
+        print
+    } else {
+        prompt_preview_theme arrows "$@"
+        print
+    }
 }
 
 function +vi-prompt_arrows_revertfix() {
This page took 0.043765 seconds and 4 git commands to generate.