mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
feat(eza): add hyperlink option (#12545)
This commit is contained in:
@@ -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.
|
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
|
## Aliases
|
||||||
|
|
||||||
**Notes:**
|
**Notes:**
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ function _configure_eza() {
|
|||||||
if [[ $_val ]]; then
|
if [[ $_val ]]; then
|
||||||
_EZA_TAIL+=("--time-style='$_val'")
|
_EZA_TAIL+=("--time-style='$_val'")
|
||||||
fi
|
fi
|
||||||
|
if zstyle -t ":omz:plugins:eza" "hyperlink"; then
|
||||||
|
_EZA_TAIL+=("--hyperlink")
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_configure_eza
|
_configure_eza
|
||||||
|
|||||||
Reference in New Issue
Block a user