Hello there. Not so many things as of today, but still.

tmux git-root window name

My common workflow with tmux is when I’m using several per-project windows and navigating between them. Each “project” is usually a git-repo and I’m doing all the things just inside this repo. Until recently I had had to manually name each window to not fall into the mess of unnamed windows.

I have found that it’s possible to automatically set window’s name according to current directory: link. Even more, it is possible to use custom shell command to set it. So, to make your window named as your current pane git repository, you can use the following commands in your tmux.conf:

# sets window name to basename of git-root directory
set -g automatic-rename on
set -g automatic-rename-format '#(basename "$(git -C #{pane_current_path} rev-parse --show-toplevel 2>/dev/null || echo "#{pane_current_path}")")'

With most recent tmux version (tested with 3.3a on Linux and OSX) it should run okay without any weird issues.

vim system-wide clipboard

I don’t know why I haven’t used it yet but it is possible to make vim’s yy (and similar commands) works with system clipboard and across different vim instances:

" enable copying from vim to the system-clipboard
set clipboard=unnamedplus

Disqus

I have added Disqus integration to be able to collect possible feedback.


So, that is all for today. Thank you for a reading. Good luck, have a nice day.