Blog: 2024-02-21: Difference between revisions

From razwiki
Jump to navigation Jump to search
(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")
 
(No difference)

Latest revision as of 21:49, 21 February 2024

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