diff --git a/modules/tmux/default.nix b/modules/tmux/default.nix index f885ad3..7f46b6f 100644 --- a/modules/tmux/default.nix +++ b/modules/tmux/default.nix @@ -11,7 +11,7 @@ let }; nativeBuildInputs = [ pkgs.makeWrapper ]; postInstall = '' - find $target -type f -name "*.tmux" -o -name "*.sh" | while read script; do + find $target -type f -executable \( -name "*.tmux" -o -name "*.sh" \) | while read script; do wrapProgram "$script" --prefix PATH : ${ pkgs.lib.makeBinPath [ pkgs.bash @@ -32,7 +32,7 @@ let }; nativeBuildInputs = [ pkgs.makeWrapper ]; postInstall = '' - find $target -type f -name "*.tmux" -o -name "*.sh" | while read script; do + find $target -type f -executable \( -name "*.tmux" -o -name "*.sh" \) | while read script; do wrapProgram "$script" --prefix PATH : ${ pkgs.lib.makeBinPath [ pkgs.bash