dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 13517aa054b007b984196eca8a977d5c9f0da5d2
parent 6e400767c930e4d35366e9b8d0d842e0128e2383
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 27 Feb 2020 09:17:55 +0100

Put {'s back on same line as function name

Diffstat:
M.local/bin/template.sh | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/.local/bin/template.sh b/.local/bin/template.sh @@ -3,8 +3,7 @@ version=0.1.0 -show_help() -{ +show_help() { echo "usage: ${0##*/} [OPTIONS] COMMAND ..." echo "short description here." echo @@ -15,16 +14,14 @@ show_help() echo " -- do not consider any following args as options" } -show_version() -{ +show_version() { echo "${0##*/} version $version" echo "licensed under the ISC License" echo "written by Anders Damsgaard, anders@adamsgaard.dk" echo "https://src.adamsgaard.dk/dotfiles" } -die() -{ +die() { printf '%s: error: %s\n' "${0##*/}" "$1" >&2 exit 1 }