dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
Log | Files | Refs

commit 35dd22da8d5303f7f8d4771406b792c121ed81fd
parent 55948729f4ad2a7a120d2095ec3dd29953cb94ec
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Wed,  6 Dec 2023 19:18:02 +0200

Set a proper variable for the self argument.

Diffstat:
Mbin/0x0.st | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/bin/0x0.st b/bin/0x0.st @@ -7,13 +7,15 @@ if [ -z "$(command -v xsel)" ] || [ -z "$(command -v curl)" ]; then exit 1 fi +self_executable="$0" + help_message () { printf "Usage:\n" - printf "\t%s [--debug] -p, --primay\n" "$0" - printf "\t%s [--debug] -s, --secondary\n" "$0" - printf "\t%s [--debug] -b, --clipboard\n" "$0" - printf "\t%s [--debug] -u URL, --url URL\n" "$0" - printf "\t%s [--debug] FILENAME\n" "$0" + printf "\t%s [--debug] -p, --primay\n" "$self_executable" + printf "\t%s [--debug] -s, --secondary\n" "$self_executable" + printf "\t%s [--debug] -b, --clipboard\n" "$self_executable" + printf "\t%s [--debug] -u URL, --url URL\n" "$self_executable" + printf "\t%s [--debug] FILENAME\n" "$self_executable" printf "\n" printf "Flags: -p, --primary Operate on the PRIMARY selection.