1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-28 11:34:19 +08:00

feat(eza): add hyperlink option (#12545)

This commit is contained in:
Benedikt Volkmer 2024-07-08 20:19:15 +02:00 committed by GitHub
parent 608d62b2a5
commit 5b37e218e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View File

@ -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:**

View File

@ -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