diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index f074d49..55469ff 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" diff --git a/fake_home/.sofi.sh b/fake_home/.sofi.sh index a9f6ea6..deb8ffd 100755 --- a/fake_home/.sofi.sh +++ b/fake_home/.sofi.sh @@ -90,7 +90,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" }