diff options
author | xyz <gky44px1999@gmail.com> | 2022-08-19 22:11:25 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-08-19 22:11:25 -0700 |
commit | 62460a5cccfb4e1fa62a6b0fbd7e8403b9a8502a (patch) | |
tree | c22b24422cc65ce97aa9e34794b58dd971241102 /home/xyz/.local | |
parent | e798cc4087bc3e20061d3fdb84bf77f8274ae35e (diff) |
new px script
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/px | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/px b/home/xyz/.local/bin/px new file mode 100755 index 00000000..7d5c17d2 --- /dev/null +++ b/home/xyz/.local/bin/px @@ -0,0 +1,10 @@ +#!/bin/sh +# Printf Xsel + +if [ $# -eq 0 ]; then + printf '%s' "$PWD" +else + for dir; do + /usr/bin/printf '%q ' "$(realpath -- "$dir")" + done +fi | xsel -ib |