From dd78faaf40862bd1552ec36c41374b527f747284 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 23 Feb 2024 03:08:52 -0800 Subject: Reorganize shell scripts into sh dir, consider in the future fsh will have different kinds of files --- sh/px | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 sh/px (limited to 'sh/px') diff --git a/sh/px b/sh/px new file mode 100755 index 0000000..1b4e849 --- /dev/null +++ b/sh/px @@ -0,0 +1,10 @@ +#!/bin/sh +# Printf Xsel + +if [ $# -eq 0 ]; then + /usr/bin/printf '%q' "$PWD" +else + for dir; do + /usr/bin/printf '%q ' "$(realpath -- "$dir")" + done +fi | xsel -ib -- cgit v1.2.3-70-g09d2