fish: alias improvements
This commit is contained in:
parent
c57d8e570f
commit
1fcaa7f7fe
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue