aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/bd.bash4
-rw-r--r--bash/bashrc.d/prompt.bash5
2 files changed, 5 insertions, 4 deletions
diff --git a/bash/bash_completion.d/bd.bash b/bash/bash_completion.d/bd.bash
index f6ca3a6b..8aa6f063 100644
--- a/bash/bash_completion.d/bd.bash
+++ b/bash/bash_completion.d/bd.bash
@@ -33,8 +33,8 @@ _bd() {
# Continue if we have at least one non-root ancestor
((ai)) || return
- # Add quoted ancestors to new array; for long paths, this is faster than
- # forking a subshell for `printf %q` on each item
+ # Add quoted ancestors to new array; for long paths, this is faster
+ # than forking a subshell for `printf %q` on each item
while read -d / -r ancestor ; do
ancestors_quoted[aqi++]=$ancestor
done < <(printf '%q/' "${ancestors[@]}")
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash
index 26e10cd4..f9678f20 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -160,8 +160,9 @@ prompt() {
fi
# There are some untracked and unignored files
- if git ls-files --directory --error-unmatch --exclude-standard \
- --no-empty-directory --others -- ':/*' ; then
+ if git ls-files --directory --error-unmatch \
+ --exclude-standard --no-empty-directory \
+ --others -- ':/*' ; then
state=${state}'?'
fi