dots


commit
91bc2e2
parent
a4c9080
author
xxwhirlpool
date
2026-03-10 09:42:57 -0400 EDT
update strtquote
1 files changed,  +9, -2
M config/.local/bin/strtquote
+9, -2
 1@@ -1,7 +1,14 @@
 2 #!/usr/bin/env bash
 3 
 4+default() {
 5+    sed 's/[“”]/"/g; s/[‘’]/'"'"'/g' | tee >(xclip -selection clipboard)
 6+}
 7+
 8 stdinpaste() {
 9-	gum write --header="paste smart quote shit here" | sed 's/[“”]/"/g; s/[‘’]/'"'"'/g' | batcat --paging=never
10+	gum write --header="paste smart quote shit here" | sed 's/[“”]/"/g; s/[‘’]/'"'"'/g' | batcat --paging=never | tee >(xclip -selection clipboard)
11 }
12 
13-stdinpaste
14+case "$1" in
15+    "") default ;;
16+    "-i") stdinpaste ;;
17+esac