From 4f79affa37db4fa1df6bd120d58e560f317df357 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 17 Mar 2024 20:00:38 -0400 Subject: [PATCH 1/2] Tweak recent processing --- fake_home/.sofi.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fake_home/.sofi.sh b/fake_home/.sofi.sh index 572ab68..1359bfc 100755 --- a/fake_home/.sofi.sh +++ b/fake_home/.sofi.sh @@ -84,7 +84,7 @@ add-recent() { return fi echo "$1" >> "$RECENTS" - tail -n 10 "$RECENTS" > "$RECENTS.temp" + grep -v "^$" "$RECENTS" | tail -n 10 "$RECENTS" > "$RECENTS.temp" mv "$RECENTS.temp" "$RECENTS" } @@ -127,6 +127,7 @@ fi if [[ "$1" == "" ]]; then choice="$(cat \ <(recent) \ + <(echo -e "Recents:\n") \ <(system_info) \ <(windows) \ <($HOME/.rofi-list-git-repos.py --no-icon) \ From 6e8e828fd5a1a9665ef51004ee7b69a9b5ad4c16 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 20 Mar 2024 23:47:13 -0400 Subject: [PATCH 2/2] Add wait-for alias --- fake_home/.shell_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index 0c18432..8deb8c2 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -18,6 +18,10 @@ function helpdef { return 1 } +function wait-for { + while ! $@; do sleep 1; done +} + function slides() { OLD_PATH="$PATH" PATH="$HOME/.slides-bin:$PATH"