diff options
author | Raul Benencia <id@rbenencia.name> | 2023-01-23 08:19:32 -0800 |
---|---|---|
committer | Raul Benencia <id@rbenencia.name> | 2023-01-23 08:19:32 -0800 |
commit | 4ce31be06b41a25d557725844123e79507267b63 (patch) | |
tree | aa388a6c8c9ce617e55db8762ef52cb9cf3c009c | |
parent | 7656741090f8bdaff176cf7127944cc58b24ce68 (diff) |
bash: fix git branch to support /
-rw-r--r-- | .bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -99,7 +99,7 @@ prompt_command_notitle () { if [ "$fullbranch" = "" ]; then local fullbranch="$(git symbolic-ref HEAD 2>/dev/null)" fi - local branch="${fullbranch##*/}" + local branch="${fullbranch#ref: refs/heads/}" vcsinfo="${branch:+#$branch}" } |