diff --git a/modules/tmux/default.nix b/modules/tmux/default.nix index 7f46b6f..70b453d 100644 --- a/modules/tmux/default.nix +++ b/modules/tmux/default.nix @@ -11,7 +11,9 @@ let }; nativeBuildInputs = [ pkgs.makeWrapper ]; postInstall = '' - find $target -type f -executable \( -name "*.tmux" -o -name "*.sh" \) | while read script; do + chmod +x $target/share/tmux-plugins/tmux-current-pane-hostname/*.tmux + patchShebangs $target + for script in $target/share/tmux-plugins/tmux-current-pane-hostname/*.tmux; do wrapProgram "$script" --prefix PATH : ${ pkgs.lib.makeBinPath [ pkgs.bash @@ -32,7 +34,9 @@ let }; nativeBuildInputs = [ pkgs.makeWrapper ]; postInstall = '' - find $target -type f -executable \( -name "*.tmux" -o -name "*.sh" \) | while read script; do + chmod +x $target/share/tmux-plugins/tmux-compile/*.tmux + patchShebangs $target + for script in $target/share/tmux-plugins/tmux-compile/*.tmux; do wrapProgram "$script" --prefix PATH : ${ pkgs.lib.makeBinPath [ pkgs.bash