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" | |
| 129 | 129 | alias gita="git add ." | |
| 130 | 130 | alias pusheu="git push bytes main && cd /home/kat/Documents/Git/-mine/eunoia-astro/src/utils && node git-changelog.js && cd ../../" | |
| 131 | 131 | ||
| 132 | + | # dev | |
| 133 | + | alias irb="rv run irb" | |
| 134 | + | alias ipy="python3 -i" | |
| 135 | + | alias iphp="php -a" | |
| 136 | + | ||
| 132 | 137 | # vpn split tunnel aliases based on a small script @ ~/.local/bin/mvpn | |
| 133 | 138 | alias mftp="mvpn filezilla" | |
| 134 | 139 | alias mterm="mvpn kitty" |
+3,
-0
+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 @@ | |
| 6 | 6 | # - `lowerd -i` | |
| 7 | 7 | ||
| 8 | 8 | 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) | |
| 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:]' | 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) | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | case "$1" in | |
| 21 | 21 | "") default ;; | |
| 22 | - | "-i") stdinpaste ;; | |
| 22 | + | "-i") stdinpaste && echo -e "\n" ;; | |
| 23 | 23 | *) takearg "$@" ;; | |
| 24 | 24 | esac |
+1,
-1
| ... | ... | @@ -1,6 +1,6 @@ | |
| 1 | 1 | #!/usr/bin/env bash | |
| 2 | 2 | ||
| 3 | - | if [[ $# -eq 0 ]]; then | |
| 3 | + | if [[ $# -eq 0 || $1 == "-b" && $# -ne 2 ]]; then | |
| 4 | 4 | echo "Usage: mksh [-b] [FILENAME]" | |
| 5 | 5 | echo " -b puts it in PATH" | |
| 6 | 6 | echo " else default to pwd" |
+3,
-3
| ... | ... | @@ -6,7 +6,7 @@ | |
| 6 | 6 | # - `upperd -i` | |
| 7 | 7 | ||
| 8 | 8 | 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) | |
| 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:]' | 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) | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | case "$1" in | |
| 21 | 21 | "") default ;; | |
| 22 | - | "-i") stdinpaste ;; | |
| 22 | + | "-i") stdinpaste && echo -e "\n" ;; | |
| 23 | 23 | *) takearg "$@" ;; | |
| 24 | 24 | esac |