diff options
author | Linnnus <[email protected]> | 2023-11-21 17:04:46 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-11-21 17:05:44 +0100 |
commit | 977534211effc27304b61db0e21d80d4d2539f58 (patch) | |
tree | bba1ba14876500ad1ef02207d218c12bdc79baeb /home/zsh/watch-while.nix | |
parent | e2cc47f4194b2ba43f407ab9d7e4232b567c21f2 (diff) |
home: Add networking utilites
Diffstat (limited to 'home/zsh/watch-while.nix')
-rw-r--r-- | home/zsh/watch-while.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/home/zsh/watch-while.nix b/home/zsh/watch-while.nix index 87e2bbc..ec42e13 100644 --- a/home/zsh/watch-while.nix +++ b/home/zsh/watch-while.nix @@ -6,15 +6,14 @@ }: let # Program to invoke for long-running commands. pkg = pkgs.watch-while; - exec = "${pkg}/bin/watch-while"; # Prorams to wrap with watch-while. - toWrap = ["nixos-rebuild" "darwin-rebuild"]; + toWrap = ["nixos-rebuild" "darwin-rebuild" "nmap"]; in { # Alias long-running commands to their prefixed versions. These aliases are # only loaded for interactive use, so they won't mess with scripts. programs.zsh.shellAliases = - lib.genAttrs toWrap (p: "${exec} ${p}") + lib.genAttrs toWrap (p: "${pkg}/bin/${pkg.pname} ${p}") # Enable alias expansion after sudo with this trick. // { "sudo" = "sudo "; |