Commit 3bdec71
xxwhirlpool
·
2026-03-25 07:58:11 -0400 EDT
parent 26d9ca8
misc
3 files changed,
+9,
-9
+1,
-1
| ... | ... | @@ -1,3 +1,3 @@ | |
| 1 | 1 | #!/usr/bin/env bash | |
| 2 | 2 | ||
| 3 | - | pwd | tr -d "\n" | copy | |
| 3 | + | pwd | tr -d "\n" | tee >(xclip -sel clipboard) && echo -e "\n" |
+4,
-4
| ... | ... | @@ -6,7 +6,7 @@ | |
| 6 | 6 | # - `lowerd -i` | |
| 7 | 7 | ||
| 8 | 8 | default() { | |
| 9 | - | tr '[:upper:]' '[:lower:]' | tr -d "\n" | tee >(xclip -selection clipboard) | |
| 9 | + | tr '[:upper:]' '[:lower:]' | tr -d "\n" | tee >(xclip -selection clipboard) && echo -e "\n" | |
| 10 | 10 | } | |
| 11 | 11 | ||
| 12 | 12 | takearg() { |
| ... | ... | @@ -14,11 +14,11 @@ takearg() { | |
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | 16 | stdinpaste() { | |
| 17 | - | gum write --header="paste text here" | tr '[:upper:]' '[:lower:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard) | |
| 17 | + | gum write --header="paste text here" | tr '[:upper:]' '[:lower:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard) && echo -e "\n" | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | case "$1" in | |
| 21 | 21 | "") default ;; | |
| 22 | - | "-i") stdinpaste && echo -e "\n" ;; | |
| 23 | - | *) takearg "$@" && echo -e "\n" ;; | |
| 22 | + | "-i") stdinpaste ;; | |
| 23 | + | *) takearg "$@" ;; | |
| 24 | 24 | esac |
+4,
-4
| ... | ... | @@ -6,7 +6,7 @@ | |
| 6 | 6 | # - `upperd -i` | |
| 7 | 7 | ||
| 8 | 8 | default() { | |
| 9 | - | tr '[:lower:]' '[:upper:]' | tr -d "\n" | tee >(xclip -selection clipboard) | |
| 9 | + | tr '[:lower:]' '[:upper:]' | tr -d "\n" | tee >(xclip -selection clipboard) && echo -e "\n" | |
| 10 | 10 | } | |
| 11 | 11 | ||
| 12 | 12 | takearg() { |
| ... | ... | @@ -14,11 +14,11 @@ takearg() { | |
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | 16 | stdinpaste() { | |
| 17 | - | gum write --header="paste text here" | tr '[:lower:]' '[:upper:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard) | |
| 17 | + | gum write --header="paste text here" | tr '[:lower:]' '[:upper:]' | tr -d "\n" | batcat --paging=never | tee >(xclip -selection clipboard) && echo -e "\n" | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | case "$1" in | |
| 21 | 21 | "") default ;; | |
| 22 | - | "-i") stdinpaste && echo -e "\n" ;; | |
| 23 | - | *) takearg "$@" && echo -e "\n" ;; | |
| 22 | + | "-i") stdinpaste ;; | |
| 23 | + | *) takearg "$@" ;; | |
| 24 | 24 | esac |