]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zsh/functions/Prompts/prompt_arrows_setup
reorganize aliases, clean up binds, add zoxide
[dotfiles.git] / base / .zsh / functions / Prompts / prompt_arrows_setup
index 9b935f1ea10a7a9a5bd4059e4e77d341827b1108..08f364689082832902ed93eedd0a4e8b7c8bea3d 100644 (file)
@@ -46,17 +46,19 @@ function prompt_arrows_setup() {
     p="${${SSH_CLIENT+$s}:-$p}"
 
     local clock="%F{$n}%T%f" dirvcs="%F{$d}"'${vcs_info_msg_0_:-%~}'"%f"
+    # XXX: linux only
     local battery=/sys/class/power_supply/BAT0/capacity
     [[ -e "$battery" ]] && clock+=" `cat $battery`%%"
     local vicol='%F{${${prompt_arrows_vimode:+'"$r"'}:-'"$c"'}}'
+    local hist="%F{$n}%h"
     case "$m" {
         2line)
-            PROMPT="%f    $clock $dirvcs"$'\n'"%F{$c}>>> "
+            PROMPT="%f    $hist $clock $dirvcs"$'\n'"%F{$c}>>> "
             unset RPROMPT
             ;;
         right)
             RPROMPT="$dirvcs $clock"
-            PROMPT="%F{$c}>>> "
+            PROMPT="%F{$c}>>> $hist"
             ;;
         *)
             echo "Unknown prompt mode $m"
This page took 0.049086 seconds and 4 git commands to generate.