Commit fa4c2c6

xxwhirlpool  ·  2026-03-24 18:30:50 -0400 EDT
parent 9668ace
repls, misc
6 files changed,  +25, -7
+5, -0
......@@ -129,6 +129,11 @@ alias gits="git status"
129129 alias gita="git add ."
130130 alias pusheu="git push bytes main && cd /home/kat/Documents/Git/-mine/eunoia-astro/src/utils && node git-changelog.js && cd ../../"
131131
132+# dev
133+alias irb="rv run irb"
134+alias ipy="python3 -i"
135+alias iphp="php -a"
136+
132137 # vpn split tunnel aliases based on a small script @ ~/.local/bin/mvpn
133138 alias mftp="mvpn filezilla"
134139 alias mterm="mvpn kitty"
+3, -0
......@@ -0,0 +1,3 @@
1+#!/usr/bin/env bash
2+
3+pwd | tr -d "\n" | copy
+10, -0
......@@ -0,0 +1,10 @@
1+#!/usr/bin/env bash
2+
3+if [[ $(command -v deno ) ]]; then
4+ deno repl
5+elif [[ $(command -v node) ]]; then
6+ node
7+else
8+ echo "no JS runtime found :("
9+ exit 1
10+fi
+3, -3
......@@ -6,7 +6,7 @@
66 # - `lowerd -i`
77
88 default() {
9- tr '[:upper:]' '[:lower:]' | perl -pe "chomp if eof" | tee >(xclip -selection clipboard)
9+ tr '[:upper:]' '[:lower:]' | tr -d "\n" | tee >(xclip -selection clipboard)
1010 }
1111
1212 takearg() {
......@@ -14,11 +14,11 @@ takearg() {
1414 }
1515
1616 stdinpaste() {
17- gum write --header="paste text here" | tr '[:upper:]' '[:lower:]' | perl -pe "chomp if eof" | 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)
1818 }
1919
2020 case "$1" in
2121 "") default ;;
22- "-i") stdinpaste ;;
22+ "-i") stdinpaste && echo -e "\n" ;;
2323 *) takearg "$@" ;;
2424 esac
+1, -1
......@@ -1,6 +1,6 @@
11 #!/usr/bin/env bash
22
3-if [[ $# -eq 0 ]]; then
3+if [[ $# -eq 0 || $1 == "-b" && $# -ne 2 ]]; then
44 echo "Usage: mksh [-b] [FILENAME]"
55 echo " -b puts it in PATH"
66 echo " else default to pwd"
+3, -3
......@@ -6,7 +6,7 @@
66 # - `upperd -i`
77
88 default() {
9- tr '[:lower:]' '[:upper:]' | perl -pe "chomp if eof" | tee >(xclip -selection clipboard)
9+ tr '[:lower:]' '[:upper:]' | tr -d "\n" | tee >(xclip -selection clipboard)
1010 }
1111
1212 takearg() {
......@@ -14,11 +14,11 @@ takearg() {
1414 }
1515
1616 stdinpaste() {
17- gum write --header="paste text here" | tr '[:lower:]' '[:upper:]' | perl -pe "chomp if eof" | 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)
1818 }
1919
2020 case "$1" in
2121 "") default ;;
22- "-i") stdinpaste ;;
22+ "-i") stdinpaste && echo -e "\n" ;;
2323 *) takearg "$@" ;;
2424 esac