ofirgall / tmux-window-name

A plugin to name your tmux windows smartly.
MIT License
204 stars 19 forks source link

libtmux custom location #39

Open erenard opened 2 months ago

erenard commented 2 months ago

Hello,

I have installed libtmux using my distrib package manager (yay -S python-libtmux) and it is located at: /usr/lib/python3.12/site-packages/libtmux

Also:

> python -m site
sys.path = [
    '/home/eric',
    '/usr/lib/python312.zip',
    '/usr/lib/python3.12',
    '/usr/lib/python3.12/lib-dynload',
    '/usr/lib/python3.12/site-packages',
]
USER_BASE: '/home/eric/.local' (exists)
USER_SITE: '/home/eric/.local/lib/python3.12/site-packages' (doesn't exist)
ENABLE_USER_SITE: True

Can make it work with this configuration ?

ofirgall commented 2 months ago

Hey the plugin runs the script by hook and relies on the shebang to choose the python binary.

You can override the hooks to run it as you want, you can see the defaults here: https://github.com/ofirgall/tmux-window-name/blob/master/tmux_window_name.tmux