From 1a1681699643d43643a1f575081a8c860645d793 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:11:52 +0100 Subject: [PATCH] Add ftp client alias --- home/features/cli/default.nix | 1 + home/features/cli/fish.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/home/features/cli/default.nix b/home/features/cli/default.nix index ac6a6c8..c3c280f 100644 --- a/home/features/cli/default.nix +++ b/home/features/cli/default.nix @@ -29,6 +29,7 @@ ranger # TUI file manager trickle # cli network limiter du-dust # disk usage visualizer + lftp # FTP client nvd # Differ nix-output-monitor diff --git a/home/features/cli/fish.nix b/home/features/cli/fish.nix index 42729ea..ebb9d39 100644 --- a/home/features/cli/fish.nix +++ b/home/features/cli/fish.nix @@ -7,6 +7,7 @@ inherit (lib) mkIf; hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages; hasRipgrep = hasPackage "ripgrep"; + hasLftp = hasPackage "lftp"; hasExa = hasPackage "eza"; hasLazygit = config.programs.lazygit.enable; hasLazydocker = hasPackage "lazydocker"; @@ -87,6 +88,8 @@ in { udmount = "udisksctl mount -b"; udumount = "udisksctl unmount -b"; + + fftp = mkIf hasLftp "lftp -u ghoscht, sftp://192.168.178.48"; }; functions = { # Disable greeting