Skip to content

$PATH Pollution on NixOS #979

Description

@CuboidRaptor

Version Information:

  • Linux NixOS 25.05 (Warbler) x86_64
  • tmuxp 1.50.1
  • tmux 3.5a
  • Bash 5.2.37(1)-release

When loading tmuxp sessions, $PATH gets polluted with paths to python and tmuxp. For example, when I load a session, echo "$PATH" prints /nix/store/fqm9bqqlmaqqr02qbalm1bazp810qfiw-python3-3.12.9/bin:/nix/store/y2r9mrjwnjbj2mqai0949am04z6ckw4g-tmuxp-1.50.1/bin before my usual $PATH. These paths are where Nix stores tmuxp's binaries as well as the binaries for the version of python it uses.

This only happens when I load with tmuxp. Just using tmux new does not cause this bug. It also doesn't happen outside of tmux.
This happens with a completely blank tmux config that has nothing except for set-option -g default-shell /<...>/shellbin, where shellbin is a bash script I created that runs bash with --noprofile and --norc.
Essentially, a blank tmux and bash config.
This bug happens with both my custom tmuxp sessions and also the example on the README.md

Should be able to reproduce with tmuxp load mysession with ~/.tmuxp/mysession.yaml containing the example from the README.md with no bash/tmux config on NixOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions