aboutsummaryrefslogtreecommitdiff
path: root/00-prompt.zsh
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2021-11-15 10:31:24 -0700
committerJosh Rahm <rahm@google.com>2021-11-15 10:31:24 -0700
commita6213bc74c817360d4947fa9d94d97431d5b258c (patch)
tree349df3c400c7992c28a448f397f0174f38116f77 /00-prompt.zsh
parenteef56cd6f76244cb7ab54a45ac1c60aa3e658f12 (diff)
downloadzshrcd-a6213bc74c817360d4947fa9d94d97431d5b258c.tar.gz
zshrcd-a6213bc74c817360d4947fa9d94d97431d5b258c.tar.bz2
zshrcd-a6213bc74c817360d4947fa9d94d97431d5b258c.zip
Change rahm1 prompt to use the simple_prompt
Diffstat (limited to '00-prompt.zsh')
-rw-r--r--00-prompt.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/00-prompt.zsh b/00-prompt.zsh
index b27691f..cfeba64 100644
--- a/00-prompt.zsh
+++ b/00-prompt.zsh
@@ -20,6 +20,8 @@ function distro_logo {
esac
}
+DISTRO_LOGO=$(distro_logo)
+
function simple_prompt {
ec=$?
preamble=""
@@ -35,7 +37,7 @@ function simple_prompt {
host="${1}%m${default}"
directory="${2}%2~${default}"
- echo " ${default}$(distro_logo) ${code} ${name}${host} ${directory} · %{\x1b[00m%}"
+ echo " ${default}${DISTRO_LOGO} ${code} ${name}${host} ${directory} · %{\x1b[00m%}"
}
function simple_rprompt {