From 1fcaa7f7fe2c8f79178f3bc9ff377440c14e7fce Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 30 Dec 2021 00:55:41 +0100 Subject: [PATCH] fish: alias improvements --- programs/fish.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/programs/fish.nix b/programs/fish.nix index 1af95e4..208aa14 100644 --- a/programs/fish.nix +++ b/programs/fish.nix @@ -33,6 +33,7 @@ la = "exa --long --all --group --header --group-directories-first --sort=type --icons"; lg = "exa --long --all --group --header --git"; lt = "exa --long --all --group --header --tree --level "; + docker = "podman"; ytdl = "ytdl_with_options"; ytdl_mp4 = "ytdl_with_options -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'"; yti = "ytdl_with_options -F"; @@ -43,10 +44,10 @@ functions = { upp = '' - if rg --quiet '^use flake$' .envrc + if rg --quiet '^use flake$' ./.envrc nix flake update ./ -v else - nix flake update (rg --no-line-number --color never '^use flake' .envrc | cut -d ' ' -f 3 | xargs -I {} sh -c 'echo {}') -v + nix flake update (rg --no-line-number --color never '^use flake' ./.envrc | cut -d ' ' -f 3 | xargs -I {} sh -c 'echo {}') -v end ''; @@ -55,6 +56,11 @@ wget -U "$user_agent" $argv ''; + aria-browser = '' + set user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" + aria2c -U "$user_agent" --file-allocation none -x 2 $argv + ''; + ytdl_with_options = '' yt-dlp --config-location "$HOME/.config/yt-dlp/config" --download-archive "$HOME/.config/youtube-dl/archive" $argv '';