11 lines
203 B
Bash
Executable File
11 lines
203 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if git status &>/dev/null; then
|
|
branch=$(git branch --show-current)
|
|
if [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]]; then
|
|
echo "($branch*)"
|
|
else
|
|
echo "($branch~)"
|
|
fi
|
|
fi
|