From 5120b108ca2dcd78db519226516e071aca7b81d0 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 10 Jul 2021 16:00:59 -0400 Subject: shfmt everything --- config/sh/aliases | 4 ++-- config/sh/env | 6 +++--- config/sh/functions | 2 +- config/zsh/local-completions/hornet/_sv | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'config') diff --git a/config/sh/aliases b/config/sh/aliases index 97a1457..cc6c8a6 100644 --- a/config/sh/aliases +++ b/config/sh/aliases @@ -6,8 +6,8 @@ alias rm="rm -i" alias cp="cp -i" alias mv="mv -i" alias bc="bc -lq" -type forkprove > /dev/null 2>&1 && alias prove="forkprove" -type tput > /dev/null 2>&1 && alias reset="tput reset" +type forkprove >/dev/null 2>&1 && alias prove="forkprove" +type tput >/dev/null 2>&1 && alias reset="tput reset" # }}} # games {{{ alias nao="ssh nethack@alt.org" diff --git a/config/sh/env b/config/sh/env index bc0bc9c..9887d1d 100644 --- a/config/sh/env +++ b/config/sh/env @@ -9,7 +9,7 @@ if [ -x "$ssh" ]; then export GIT_SSH="$ssh" export RSYNC_RSH="$ssh" fi -if type sudo-askpass > /dev/null 2>&1; then +if type sudo-askpass >/dev/null 2>&1; then SUDO_ASKPASS=$(command -v sudo-askpass) export SUDO_ASKPASS fi @@ -20,7 +20,7 @@ export FZF_DEFAULT_OPTS="--reverse --inline-info --bind=tab:down,shift-tab:up,ch export FZF_DEFAULT_COMMAND="ag --hidden -l ." export FANCY_PROMPT_COLORS="user_doy=bright_blue,host_st-doy2=bright_white,host_tozt=bright_yellow,host_partofme=magenta,host_mail=green,host_hornet=red" export PASSWORD_STORE_X_SELECTION=primary -type brew > /dev/null 2>&1 && export PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/sbin:$PATH" -type brew > /dev/null 2>&1 && export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:/usr/local/opt/findutils/libexec/gnuman:$MANPATH" +type brew >/dev/null 2>&1 && export PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/sbin:$PATH" +type brew >/dev/null 2>&1 && export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:/usr/local/opt/findutils/libexec/gnuman:$MANPATH" # vim:ft=sh: diff --git a/config/sh/functions b/config/sh/functions index a662f2d..76db947 100644 --- a/config/sh/functions +++ b/config/sh/functions @@ -1,6 +1,6 @@ function perldoc { # XXX bash specific - if type cpandoc > /dev/null 2>&1; then + if type cpandoc >/dev/null 2>&1; then cpandoc "$@" else command perldoc "$@" diff --git a/config/zsh/local-completions/hornet/_sv b/config/zsh/local-completions/hornet/_sv index b67ef08..218e95f 100644 --- a/config/zsh/local-completions/hornet/_sv +++ b/config/zsh/local-completions/hornet/_sv @@ -6,4 +6,5 @@ service_list=(${(f)services}) _describe 'commands' service_list +# shfmt:skip (shfmt doesn't recognize zsh array expansion) # vim:ft=zsh -- cgit v1.2.3-54-g00ecf