From d8db85003175f0e967a4cc0dd1eb268c972542e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20W=C3=BChr?= Date: Mon, 26 Feb 2024 09:29:37 +0100 Subject: [PATCH] Add basic done script --- README.md | 6 +++++- fish/config.fish | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f1a407d..cf57315 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ ```sh set -U fish_greeting + fish_config theme choose 'Tomorrow Night Bright' fish_config theme save @@ -11,5 +12,8 @@ fisher install franciscolourenco/done fisher install acomagu/fish-async-prompt fisher install pure-fish/pure -starship preset pure-preset -o ~/.config/starship.toml +# starship preset pure-preset -o ~/.config/starship.toml + +set -U __done_allow_nongraphical 1 +set -U __done_notification_command "_ntfy_done \$title \$message" ``` diff --git a/fish/config.fish b/fish/config.fish index 6e654e8..0a11ad4 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,3 +1,12 @@ +function _ntfy_done -a title message + ntfy send \ + --quiet \ + --title "$title" \ + --tags "$(hostname)",computer \ + https://push.pnyhf.eu/terminal \ + "$message" +end + # Skips non-existing and already known paths fish_add_path \ ~/.local/bin \