summaryrefslogtreecommitdiff
path: root/home/zsh/watch-while.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/zsh/watch-while.nix')
-rw-r--r--home/zsh/watch-while.nix5
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 ";