erikw/tmux-powerline — pull request #109 by rintaun (2012-12-18 15:32:10+00:00)
Title: Configurable theme and segment paths with fallback

Currently it is possible to alter the paths for segments and themes from withing the `.tmux-powerlinerc` file. I thought it would be very nice if these paths were able to be overridden while still falling back to the default directories.

I use tmux-powerline as a git submodule so that I can easily keep it updated, and this feature makes using custom segments while still supporting the included ones very simple and intuitive.

This introduces two new variables, to be defined in `.tmux-powerlinerc`:
* `TMUX_POWERLINE_DIR_USER_THEMES` - The path to search first for themes
* `TMUX_POWERLINE_DIR_USER_SEGMENTS` - The path to search first for segments

If these are not set or the necessary file does not exist in that path, the default directory is used instead.