From f3a0a1c204bf736c8d5baaf54477d4c1bfc81ab3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 31 Aug 2016 13:07:47 +1200 Subject: Remove unneeded fallback for $name We've already bailed out by this point if we couldn't get one --- bash/bashrc.d/prompt.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bash/bashrc.d') 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 -- cgit v1.2.3