aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-26 21:54:30 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-26 21:54:30 +1300
commit1c1e11385af1651eadb61a695d6d3fcc061ee91b (patch)
tree396a74095fb90bb2e53ac5ba2444a4d0aa76ac49 /bash
parentFix long lines in manual pages (diff)
downloaddotfiles-1c1e11385af1651eadb61a695d6d3fcc061ee91b.tar.gz
dotfiles-1c1e11385af1651eadb61a695d6d3fcc061ee91b.zip
Break up some long lines
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