Tmux has an option to have the #{pane_current_path}
as a name for the current pane in the status line. This is great but has two short falls for me:
$HOME
is not displayed as~
.- I only really need the last directory name, not the full path from
/
. So, for example/home/ook/thingy/src
would only be displayed as eithersrc
or~/t/src
.
Is there a Tmux command that does this?
Bonus points if it works with powerline as well.