From 6501f3c9f3e59030c4316a5d38b2a91c19118dc4 Mon Sep 17 00:00:00 2001 From: xfnw Date: Sat, 29 May 2021 20:29:02 -0400 Subject: [PATCH] no more emacs splash --- .emacs | 1 - bin/mark | 2 +- bin/rstart | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 bin/rstart diff --git a/.emacs b/.emacs index 4aa27c5..111ffe2 100644 --- a/.emacs +++ b/.emacs @@ -14,7 +14,6 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-enabled-themes '(tsdh-dark)) - '(initial-buffer-choice "~/.esplash") '(tool-bar-mode nil) '(menu-bar-mode nil)) diff --git a/bin/mark b/bin/mark index f38458b..c0a54b8 100755 --- a/bin/mark +++ b/bin/mark @@ -1,6 +1,6 @@ #!/bin/bash -grep -l "$1" ~/.local/share/catgirl/log/*/*/* | shuf -n 30 | tr "\n" " " | xargs cat | grep '>' > /tmp/markylol +grep -l "$1" ~/.local/share/catgirl/log/*/*/* | shuf -n 1 | tr "\n" " " | xargs cat | grep '>' > /tmp/markylol nextword(){ awk '{for (I=1;I<=NF;I++) if ($I == "'$1'") {print $(I+1)};}' /tmp/markylol | sed '/^$/d' | shuf -n 1 ; } diff --git a/bin/rstart b/bin/rstart new file mode 100755 index 0000000..3d9e42b --- /dev/null +++ b/bin/rstart @@ -0,0 +1,3 @@ +#!/bin/bash + +mark $(echo ~/.local/share/catgirl/log/*/*/* | shuf -n1 | xargs grep '>' | shuf -n1 | cut -d' ' -f3) | tr -d "\n"