diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:33:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 02:33:52 +1300 |
commit | 18d31e8c13cf8ae97a16bfcf949dbae5391a47f2 (patch) | |
tree | 6519b064be49bf6a47ed139a8bdd344ca72afbdc /bash | |
parent | Remove unneeded local array declaration (diff) | |
download | dotfiles-18d31e8c13cf8ae97a16bfcf949dbae5391a47f2.tar.gz dotfiles-18d31e8c13cf8ae97a16bfcf949dbae5391a47f2.zip |
Break up a couple of long lines
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_completion.d/man.bash | 4 | ||||
-rw-r--r-- | bash/bash_completion.d/path.bash | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/bash/bash_completion.d/man.bash b/bash/bash_completion.d/man.bash index e4175837..ffef48ec 100644 --- a/bash/bash_completion.d/man.bash +++ b/bash/bash_completion.d/man.bash @@ -58,7 +58,9 @@ _man() { for manpath in "${manpaths[@]}" ; do [[ -n $manpath ]] || continue if [[ -n $section ]] ; then - for page in "$manpath"/"$subdir"/"$word"*."$section"?(.[glx]z|.bz2|.lzma|.Z) ; do + for page in \ + "$manpath"/"$subdir"/"$word"*."$section"?(.[glx]z|.bz2|.lzma|.Z) + do pages[${#pages[@]}]=$page done else diff --git a/bash/bash_completion.d/path.bash b/bash/bash_completion.d/path.bash index 9aab8488..ce494bd4 100644 --- a/bash/bash_completion.d/path.bash +++ b/bash/bash_completion.d/path.bash @@ -49,7 +49,8 @@ _path() { # Complete with directories from PATH remove) local -a promptarr - IFS=: read -rd '' -a promptarr < <(printf '%s\0' "$PATH") + IFS=: read -rd '' -a promptarr < \ + <(printf '%s\0' "$PATH") local part for part in "${promptarr[@]}" ; do case $part in |