Blog: 2024-02-21

From razwiki
Jump to navigation Jump to search

Alright I was trying to do some tmux pane renaming and this is what I came up with

if not string-empty $TMUX
    function _fish_tmux_window_title_command --on-event fish_preexec
        tmux rename-window (echo $argv | cut -d ' ' -f 1)
    end

    function _fish_tmux_window_title_pwd --on-event fish_postexec
        tmux rename-window (curdir)
    end
end

Now I'm restoring it out bc I don't care for the feature