From 2c4b14064b47f898f567441e26b8ae489bdce7e2 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 5 Nov 2019 18:24:16 +0100 Subject: zshrc: updated ps1 --- zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 42766c7..47a364f 100644 --- a/zshrc +++ b/zshrc @@ -186,7 +186,7 @@ function _installMyPrompt() { vinorm='n' viins='i' vimode="${${KEYMAP/vicmd/$color[pinkRed]$vinorm}/(main|viins)/$color[babyBlue]$viins}$color[noColor]" - PS1="$color[mediumGray]%n$color[brightRed]::$color[lightGray]%m$color[brightRed]:$color[darkGray]%l$color[noColor] [$vimode] $color[brightRed]%(?..%? )$color[noColor]> " + PS1="$color[mediumGray]%n$color[brightRed]::$color[lightGray]%m$color[brightRed]:$color[darkGray]%2~$color[noColor] [$vimode] $color[brightRed]%(?..%? )$color[noColor]> " RPS1="%F$color[darkBlue]%~$color[noColor]" zle reset-prompt } @@ -203,6 +203,7 @@ function _installMyPromptBase16() { c_usr='%F{6}' c_hos='%F{5}' c_tty='%F{8}' + c_dir='%F{11}' c_ret='%F{1}' c_vii='%F{14}' c_vic='%F{16}' @@ -217,8 +218,8 @@ function _installMyPromptBase16() { GIT_PROMPT_AHEAD="${c_del}:${c_git_ahead}↑" GIT_PROMPT_SUFFIX="${c_del})$color[noColor] " - PS1="$c_usr%n$c_del::$c_hos%m$c_del:$c_tty%l$color[noColor] [$vimode] $(git_info)$c_ret%(?..%? )$c_del$color[noColor]> " - RPS1="%F$color[darkBlue]%~$color[noColor]" + PS1="$c_usr%n$c_del::$c_hos%m$c_del:$c_dir%2~$color[noColor] [$vimode] $(git_info)$c_ret%(?..%? )$c_del$color[noColor]> " + RPS1="%F$c_dir%~$color[noColor]" zle reset-prompt } -- cgit v1.2.3