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