dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
git clone https://kaka.farm/~git/dotfiles
Log | Files | Refs

commit b952aeb6b739920c7b1899fd9d56935daa3890cf
parent b79a83fbc4cbbef2dee3c53dc855caf618229d49
Author: Yuval Langer <yuval.langer@gmail.com>
Date:   Mon, 27 May 2024 19:50:04 +0300

Add the environment variable `URL_FOR_0X0_DOT_ST` that holds alternative https://0x0.st/ instances.

Diffstat:
Mbin/0x0.st | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/0x0.st b/bin/0x0.st @@ -8,7 +8,10 @@ if [ -z "$(command -v xsel)" ] || [ -z "$(command -v curl)" ]; then fi if [ -z "${URL_FOR_0X0_DOT_ST}" ]; then - URL_FOR_0X0_DOT_ST="0x0.st" + # Default URL: + url_for_0x0_dot_st="0x0.st" +else + url_for_0x0_dot_st="$URL_FOR_0X0_DOT_ST" fi self_executable="$0"