fix: formatting
This commit is contained in:
4
.bashrc
4
.bashrc
@@ -12,8 +12,8 @@
|
|||||||
# wrapper for lazily loading __git_ps1 whenever it is actually needed
|
# wrapper for lazily loading __git_ps1 whenever it is actually needed
|
||||||
_lazy_git_ps1() {
|
_lazy_git_ps1() {
|
||||||
if [[ -z $__GIT_PROMPT_SOURCED ]]; then
|
if [[ -z $__GIT_PROMPT_SOURCED ]]; then
|
||||||
. /usr/share/bash-completion/completions/git &>/dev/null
|
. /usr/share/bash-completion/completions/git &>/dev/null
|
||||||
. /usr/share/git/completion/git-prompt.sh &>/dev/null
|
. /usr/share/git/completion/git-prompt.sh &>/dev/null
|
||||||
if [ -d .git ] || git worktree list &>/dev/null; then
|
if [ -d .git ] || git worktree list &>/dev/null; then
|
||||||
export __GIT_PROMPT_SOURCED=1
|
export __GIT_PROMPT_SOURCED=1
|
||||||
__git_ps1 "$@"
|
__git_ps1 "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user