aboutsummaryrefslogtreecommitdiff
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
parentFix long lines in manual pages (diff)
downloaddotfiles-1c1e11385af1651eadb61a695d6d3fcc061ee91b.tar.gz
dotfiles-1c1e11385af1651eadb61a695d6d3fcc061ee91b.zip
Break up some long lines
-rw-r--r--bash/bash_completion.d/bd.bash4
-rw-r--r--bash/bashrc.d/prompt.bash5
-rw-r--r--bin/eds.sh3
-rw-r--r--bin/gwp.awk3
-rw-r--r--bin/tlcs.mi54
-rw-r--r--bin/xgo.sh12
-rw-r--r--gnupg/gpg.conf.mi53
-rw-r--r--mutt/muttrc4
-rw-r--r--zsh/zshrc.d/keep.zsh4
9 files changed, 26 insertions, 16 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
diff --git a/bin/eds.sh b/bin/eds.sh
index c692cb30..7e719e9d 100644
--- a/bin/eds.sh
+++ b/bin/eds.sh
@@ -1,4 +1,5 @@
-# Create and edit executable scripts in a directory EDSPATH (defaults to ~/.local/bin)
+# Create and edit executable scripts in a directory EDSPATH (defaults to
+# ~/.local/bin)
# Need at least one script name
if [ "$#" -eq 0 ] ; then
diff --git a/bin/gwp.awk b/bin/gwp.awk
index 60013add..fcfa5eab 100644
--- a/bin/gwp.awk
+++ b/bin/gwp.awk
@@ -14,7 +14,8 @@ BEGIN {
# match case-insensitively
word = tolower(ARGV[1])
- # Blank the first argument so Awk doesn't try to read data from it as a file
+ # Blank the first argument so Awk doesn't try to read data from it as a
+ # file
ARGV[1] = ""
# Bail out if we don't have a suitable word
diff --git a/bin/tlcs.mi5 b/bin/tlcs.mi5
index a3e17c82..519a41f8 100644
--- a/bin/tlcs.mi5
+++ b/bin/tlcs.mi5
@@ -71,8 +71,8 @@ fi
include(`include/mktd.m4')
%>
-# Execute the command, passing stdout and stderr to tl(1df) calls as appropriate
-# via named pipes
+# Execute the command, passing stdout and stderr to tl(1df) calls as
+# appropriate via named pipes
out=$td/out err=$td/err
mkfifo -- "$out" "$err" || exit
tl -p "$out_pref" -s "$out_suff" < "$out" &
diff --git a/bin/xgo.sh b/bin/xgo.sh
index e627f9c6..1b9f83da 100644
--- a/bin/xgo.sh
+++ b/bin/xgo.sh
@@ -12,7 +12,8 @@ for url do (
# Look for patterns in the URL that suggest transformations
case $url in
- # If this is a GitHub or GitLab link, swap "blob" for "raw" to get the actual file
+ # If this is a GitHub or GitLab link, swap "blob" for "raw" to get the
+ # actual file
(*://github.com/*/blob/*|*://gitlab.com/*/blob/*)
url=$(printf '%s\n' "$url" | sed 's_/blob/_/raw/_')
;;
@@ -20,7 +21,8 @@ for url do (
# Dig out the plain text for pastebin.com links
(*://pastebin.com/*)
# shellcheck disable=SC2016
- url=$(printf '%s\n' "$url" | sed 's_/[A-Za-z0-9][A-Za-z0-9]*$_/raw&_')
+ url=$(printf '%s\n' "$url" |
+ sed 's_/[A-Za-z0-9][A-Za-z0-9]*$_/raw&_')
;;
# If this is a not-direct imgur link and not to an album, swap URL
@@ -28,10 +30,12 @@ for url do (
# the MIME type will tell us)
(*://imgur.com/a/*) ;;
(*://imgur.com/*)
- url=$(printf '%s\n' "$url" | sed 's_imgur\.com_i.imgur.com_;s/$/.jpg/')
+ url=$(printf '%s\n' "$url" |
+ sed 's_imgur\.com_i.imgur.com_;s/$/.jpg/')
;;
- # If this is a YouTube video without a given start time, load it in mpv(1)
+ # If this is a YouTube video without a given start time, load it in
+ # mpv(1)
(*[/.]youtube.com/watch*[?\&]t=) ;;
(*[/.]youtube.com/watch*)
mpv -- "$url" && exit
diff --git a/gnupg/gpg.conf.mi5 b/gnupg/gpg.conf.mi5
index ee502692..97726d20 100644
--- a/gnupg/gpg.conf.mi5
+++ b/gnupg/gpg.conf.mi5
@@ -10,7 +10,8 @@ default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB
# In the absence of any other recipient, encrypt messages for myself
default-recipient-self
-# Show complete dates and use proper column separation for --with-colon listing mode
+# Show complete dates and use proper column separation for --with-colon listing
+# mode
fixed-list-mode
# Use only fingerprints as key IDs
diff --git a/mutt/muttrc b/mutt/muttrc
index 9ff4857d..1fb9274a 100644
--- a/mutt/muttrc
+++ b/mutt/muttrc
@@ -131,7 +131,9 @@ macro index,pager S 's<enter>' 'Save message blindly'
macro generic,index,browser,pager gm '!gms --quiet &<enter>' 'Run gms(1df)'
# Shortcut to add addresses to abook
-macro index,pager A '<pipe-message>abook --add-email-quiet<enter>' 'Add sender address to abook'
+macro index,pager A \
+ '<pipe-message>abook --add-email-quiet<enter>' \
+ 'Add sender address to abook'
# Machine or account specific settings
source ~/.muttrc.d/src|
diff --git a/zsh/zshrc.d/keep.zsh b/zsh/zshrc.d/keep.zsh
index c47748cd..7d460272 100644
--- a/zsh/zshrc.d/keep.zsh
+++ b/zsh/zshrc.d/keep.zsh
@@ -46,8 +46,8 @@ keep() {
# -h given; means show help
h)
cat <<EOF
-${FUNCNAME[0]}: Keep variables and functions in shell permanently by writing them to
-named scripts iterated on shell start, in \$ZSHKEEP (defaults to
+${FUNCNAME[0]}: Keep variables and functions in shell permanently by writing
+them to named scripts iterated on shell start, in \$ZSHKEEP (defaults to
~/.zshkeep.d).
USAGE: