I'm trying to set my tmux window's title to be the current directory that I am in. Now pane_current_path is perfect for this, but it prints the full path in my machine.
Is it possible to run pane_current_path though some formatting and only print out the current directory?
Currently using it like this
setw -g window-status-current-format "#{pane_current_path}" setw -g window-status-format "#{pane_current_path}"