Skip to content

Commit

Permalink
feat(fish): added shell function to download YT videos
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Jan 4, 2025
1 parent a51d15a commit 8f3c04e
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,28 @@ let
tmux.wittano.enable = true;
neovim.wittano.enable = true;

fish.shellAliases = {
open = "xdg-open";

# Projects
pnix = "cd $HOME/nix-dotfiles";
plab = "cd $HOME/projects/server/home-lab";

# Nix
nfu = "nix flake update";
nfc = "nix flake check";
repl = "nix repl -f '<nixpkgs>'";

# systemd
scs = "sudo systemctl status";
scst = "sudo systemctl stop";
scsta = "sudo systemctl start";
sce = "sudo systemctl enable --now";
scr = "sudo systemctl restart";
sdb = "systemd-analyze blame";
fish = {
functions.download-yt.body = "${pkgs.parallel}/bin/parallel ${pkgs.yt-dlp}/bin/yt-dlp ::: $argv";
shellAliases = {
open = "xdg-open";

# Projects
pnix = "cd $HOME/nix-dotfiles";
plab = "cd $HOME/projects/server/home-lab";

# Nix
nfu = "nix flake update";
nfc = "nix flake check";
repl = "nix repl -f '<nixpkgs>'";

# systemd
scs = "sudo systemctl status";
scst = "sudo systemctl stop";
scsta = "sudo systemctl start";
sce = "sudo systemctl enable --now";
scr = "sudo systemctl restart";
sdb = "systemd-analyze blame";
};
};
};

Expand Down

0 comments on commit 8f3c04e

Please sign in to comment.