Skip to content

Expand ~ or $(HOME) for the path to diff-highlight #1107

@zaadeh

Description

@zaadeh

Continuing after #313, would it be possible to add support for shell-style expansion of ~ or $(HOME) variables in the
path to diff-highlight in tigrc?

For example when I set:

set diff-highlight = ~/.config/git/diff-highlight

tig cannot find the diff-highlight program. It needs the expanded absolute path to find it or find it in $PATH.

The reason I ask if this is possible is I don't want to change my $PATH from the default and do not want to have root access to put diff-highlight somewhere in system-wide $PATH.

I checked and git itself can expand the program paths set in [pager] section of git config. So this might not be a bad idea after all.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions