From 55b6c49acb81b6a84a3f674a32ad1046176de4a6 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Fri, 5 Apr 2024 18:05:43 -0400 Subject: [PATCH] Add fish functions for uwu and editm4b --- configs/programs/fish.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configs/programs/fish.nix b/configs/programs/fish.nix index a9ddaae..39e181b 100644 --- a/configs/programs/fish.nix +++ b/configs/programs/fish.nix @@ -19,7 +19,6 @@ pkgs: { lonk = "qrencode -t utf8i (kitten clipboard -g)"; s = "kitty +kitten ssh"; weather = "curl wttr.in/43.0844,-77.6749"; - uwu = "mkdir -p /tmp/uwu && encfs -i 60 ~/Pictures/uwu/ /tmp/uwu --extpass 'pass storage-encryption/annex-fs'"; }; shellAbbrs = rec { tab = "clone-in-kitty --type=tab"; @@ -52,6 +51,20 @@ pkgs: { # echo "You seriously are incredibly wonderful and you mean so much to me, you've made my life so much brighter and i never wanna let you go <3" ''; functions = { + editm4b = { + description = "Edit the chapters in an m4b file"; + body = "tone tag --meta-chapters-file=(tone dump --format ChptFmtNative \$argv[1] | vipe | psub) \$argv[1]"; + argumentNames = ["Audiobook"]; + }; + uwu = { + description = "notices your fish function"; + body = '' + set UWU_DIR (mktemp -d /tmp/uwu.XXX) + encfs -i 60 ~/Pictures/uwu/ $UWU_DIR --extpass 'pass storage-encryption/annex-fs' + cd $UWU_DIR + fish --private + ''; + }; n = { description = "support nnn quit and change directory"; wraps = "nnn";