diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-26 21:54:30 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-26 21:54:30 +1300 |
commit | 1c1e11385af1651eadb61a695d6d3fcc061ee91b (patch) | |
tree | 396a74095fb90bb2e53ac5ba2444a4d0aa76ac49 /bash | |
parent | Fix long lines in manual pages (diff) | |
download | dotfiles-1c1e11385af1651eadb61a695d6d3fcc061ee91b.tar.gz dotfiles-1c1e11385af1651eadb61a695d6d3fcc061ee91b.zip |
Break up some long lines
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_completion.d/bd.bash | 4 | ||||
-rw-r--r-- | bash/bashrc.d/prompt.bash | 5 |
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 |