Skip to content

Commit

Permalink
feat(eza): add hyperlink option (ohmyzsh#12545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvolkmer authored Jul 8, 2024
1 parent 608d62b commit 5b37e21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/eza/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ Sets the `--time-style` option of `eza`. (See `man eza` for the options)

Default: Not set, which means the default behavior of `eza` will take place.

### `hyperlink`

```zsh
zstyle ':omz:plugins:eza' 'header' yes|no
```

If `yes`, always add `--hyperlink` flag to create hyperlink with escape codes.

Default: `no`

## Aliases

**Notes:**
Expand Down
3 changes: 3 additions & 0 deletions plugins/eza/eza.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ function _configure_eza() {
if [[ $_val ]]; then
_EZA_TAIL+=("--time-style='$_val'")
fi
if zstyle -t ":omz:plugins:eza" "hyperlink"; then
_EZA_TAIL+=("--hyperlink")
fi
}

_configure_eza
Expand Down

0 comments on commit 5b37e21

Please sign in to comment.