From e103f51ef39a6048fe3ec0cb0459340c0bbde726 Mon Sep 17 00:00:00 2001 From: voidarc Date: Tue, 23 Jun 2026 16:16:50 +0100 Subject: [PATCH] added a transcoding function to shell --- .zshrc | 1 + .zshrc-functions | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .zshrc-functions diff --git a/.zshrc b/.zshrc index 7c92b891..72697c4d 100755 --- a/.zshrc +++ b/.zshrc @@ -32,3 +32,4 @@ alias vinix="nvim --cmd 'cd ~/.dotfiles/.nixos'" alias man='man -P "bat -p"' source ~/.zshrc-local +source ~/.zshrc-functions diff --git a/.zshrc-functions b/.zshrc-functions new file mode 100644 index 00000000..3dc11b1f --- /dev/null +++ b/.zshrc-functions @@ -0,0 +1,17 @@ +transcode-youtube() { + # Check if both input and output files are provided + if [ "$#" -ne 1 ]; then + echo "Usage: transcode-youtube