Add fish functions for uwu and editm4b

This commit is contained in:
Emi Simpson 2024-04-05 18:05:43 -04:00
parent 7cce30000b
commit 55b6c49acb
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847

View file

@ -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";