Blog: 2024-02-21

From razwiki
Revision as of 20:49, 21 February 2024 by Razzi (talk | contribs) (Created page with "Alright I was trying to do some tmux pane renaming and this is what I came up with <pre> 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 </pre> Now I'm restoring it out bc I don't care for the feature")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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