summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-11-05 18:24:16 +0100
committerjohannst <johannes.stoelp@gmail.com>2019-11-05 18:24:16 +0100
commit2c4b14064b47f898f567441e26b8ae489bdce7e2 (patch)
tree860935452b83d2f4d147f4b568664d8c6497acfc
parent1b782f6174e25d208ebde43866d7b20b118e4205 (diff)
downloaddotfiles-2c4b14064b47f898f567441e26b8ae489bdce7e2.tar.gz
dotfiles-2c4b14064b47f898f567441e26b8ae489bdce7e2.zip
zshrc: updated ps1
-rw-r--r--zshrc7
1 files changed, 4 insertions, 3 deletions
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
}