jimeh / tmux-themepack

A pack of various Tmux themes.
1.68k stars 202 forks source link

Doesn't work on macOS? #38

Open carstenbauer opened 4 years ago

carstenbauer commented 4 years ago

In my tmux.conf I have

source-file '/Users/crstnbr/.tmux-themepack/powerline/default/cyan.tmuxtheme'

What I get when starting tmux:

/Users/crstnbr/.tmux-themepack/powerline/default/cyan.tmuxtheme:10: unknown command:

Versions: macOS Catalina 10.15.4 tmux 3.0a

Could it be an incompatibility with tmux version >=3.0?

Any pointers to how to fix this will be highly appreciated!

jimeh commented 4 years ago

That is very strange. Myself I'm on macOS 10.15.2 and tmux 3.0a at the moment and it works just fine.

The error makes it look like it's mistaking a blank line (10) for a command with no name, and complains it understandably can't find a nameless command.

Have you tried loading any other themes like the basic of default ones to see if they behave similarly?

Also, you should be able to refer to your home folder via the HOME environment variable instead of the absolute path:

source-file "${HOME}/.tmux-themepack/powerline/default/cyan.tmuxtheme"
carstenbauer commented 4 years ago

Have you tried loading any other themes like the basic of default ones to see if they behave similarly?

Yes I have, same/similar result.

Also, you should be able to refer to your home folder via the HOME environment variable instead of the absolute path:

Yeah, I switched to the explicit path at some point to rule out a potential error source.

I'll try to investigate this further, but frankly don't really know how. FWIW, I'm using iTerm instead of Terminal, but I guess that doesn't matter.