aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/prompt.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-31 13:07:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-31 13:07:47 +1200
commitf3a0a1c204bf736c8d5baaf54477d4c1bfc81ab3 (patch)
tree63ac55d82d4be6729d50dd5a9cbb5b37344a9bdf /bash/bashrc.d/prompt.bash
parentMove git index update higher up (diff)
downloaddotfiles-f3a0a1c204bf736c8d5baaf54477d4c1bfc81ab3.tar.gz
dotfiles-f3a0a1c204bf736c8d5baaf54477d4c1bfc81ab3.zip
Remove unneeded fallback for $name
We've already bailed out by this point if we couldn't get one
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r--bash/bashrc.d/prompt.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 843c5ce4..340bca54 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -159,8 +159,7 @@ prompt() {
# Print the status in brackets; add a git: prefix only if there
# might be another VCS prompt (because PROMPT_VCS is set)
printf '(%s%s%s%s)' \
- "${PROMPT_VCS:+git:}" "${name:-unknown}" \
- "${proc:+:$proc}" "$state"
+ "${PROMPT_VCS:+git:}" "$name" "${proc:+:$proc}" "$state"
;;
# Subversion prompt function