Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ icons:
cmatrix: "🤯" # add new entries that aren't included
```

### Custom Configuration File Path

By default, the plugin looks for the configuration file at:

```sh
~/.config/tmux/tmux-nerd-font-window-name.yml
```

You can override this path by adding the following line to your
tmux.conf file:

```sh
set -g @tmux-nerd-font-window-name-config-file "/your/custom/path.yml"
```

## Contributions

Contributions are welcome! Feel free to make a pull request to submit more
Expand Down
5 changes: 4 additions & 1 deletion bin/tmux-nerd-font-window-name
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ NAME="$1"
PANES="$2"
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEFAULT_CONFIG="$CURRENT_DIR/defaults.yml"
USER_CONFIG="$HOME/.config/tmux/tmux-nerd-font-window-name.yml"

# Allow overriding user config path via tmux option
USER_CONFIG=$(tmux show-option -gqv @tmux-nerd-font-window-name-config-file)
USER_CONFIG=${USER_CONFIG:-"$HOME/.config/tmux/tmux-nerd-font-window-name.yml"}

# Function to retrieve a configuration value
get_config_value() {
Expand Down