Skip to content

Upgrade migration fails if tmux.conf is read-only. #9284

Description

@nickryand

sed -i 's/^set -g terminal-features\[3\] "xterm-kitty:extkeys"$/set -ag terminal-features "xterm-kitty:extkeys"/' "$tmux_config"

Sed fails here if the tmux.conf cannot be written to. I manage my personal configuration using nix and home-manager. My tmux.conf file is read-only in my use case. I can't think of any reason this sed should not end in a || true. I did not want to PR a fix in without discussing it first.

Work around for me was simply to put the original tmux.conf back into place and re-run the upgrade.

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