Skip to content

Commit 0b51b53

Browse files
committed
chore: rename to bash-git-status
1 parent d4a7c53 commit 0b51b53

File tree

3 files changed

+18
-22
lines changed

3 files changed

+18
-22
lines changed

.vcs_git

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,23 @@ alias gpl="git pull"
2727

2828

2929
# Prompt
30-
#alias __ps1_git_branch="git branch 2>/dev/null | grep '*' | sed 's/*\ //g'"
31-
alias __ps1_git_branch="/usr/local/bin/git-head-name"
30+
alias __ps1_git_branch="bash-git-status"
3231

33-
# From http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt
34-
# Modified.
3532
_ps1_git_status() {
36-
local gbr
37-
gbr=$(git-head-name)
33+
local bgs
34+
bgs=$(bash-git-status)
3835
case "$?" in
3936
5)
40-
echo -e "\01\e[1m\02@\01\e[0;32m\0002$gbr\01\e[0m\02"
37+
echo -e "\01\e[1m\02@\01\e[0;32m\0002$bgs\01\e[0m\02"
4138
;;
4239
6)
43-
echo -e "\01\e[1m\02@\01$IRED\0002$gbr\01\e[0m\02"
40+
echo -e "\01\e[1m\02@\01$IRED\0002$bgs\01\e[0m\02"
4441
;;
4542
7)
46-
echo -e "\01\e[1m\02@\01\e[0;35m\0002$gbr\01\e[0m\02"
43+
echo -e "\01\e[1m\02@\01\e[0;35m\0002$bgs\01\e[0m\02"
4744
;;
4845
8)
49-
echo -e "\01\e[1m\02@\01\e[0;37m\0002$gbr\01\e[0m\02"
46+
echo -e "\01\e[1m\02@\01\e[0;37m\0002$bgs\01\e[0m\02"
5047
;;
5148
esac
5249
}

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "git-head-name"
2+
name = "bash-git-status"
33
version = "0.1.0"
44
edition = "2021"
55

@@ -10,4 +10,3 @@ gix = {version = "0.53", default-features = false, features = ["max-performance-
1010
anyhow = "1.0"
1111
env_logger = "0.10"
1212
log = "0.4"
13-

0 commit comments

Comments
 (0)