mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
feat(tools): update supports_hyperlinks
(#12258)
Update to https://github.com/zkat/supports-hyperlinks/releases/tag/v3.0.0
This commit is contained in:
parent
2a71aa5017
commit
4fca7ccb55
@ -221,11 +221,16 @@ supports_hyperlinks() {
|
|||||||
|
|
||||||
# If $TERM_PROGRAM is set, these terminals support hyperlinks
|
# If $TERM_PROGRAM is set, these terminals support hyperlinks
|
||||||
case "$TERM_PROGRAM" in
|
case "$TERM_PROGRAM" in
|
||||||
Hyper|iTerm.app|terminology|WezTerm) return 0 ;;
|
Hyper|iTerm.app|terminology|WezTerm|vscode) return 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# kitty supports hyperlinks
|
# These termcap entries support hyperlinks
|
||||||
if [ "$TERM" = xterm-kitty ]; then
|
case "$TERM" in
|
||||||
|
xterm-kitty|alacritty|alacritty-direct) return 0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# xfce4-terminal supports hyperlinks
|
||||||
|
if [ "$COLORTERM" = "xfce4-terminal" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -166,11 +166,16 @@ supports_hyperlinks() {
|
|||||||
|
|
||||||
# If $TERM_PROGRAM is set, these terminals support hyperlinks
|
# If $TERM_PROGRAM is set, these terminals support hyperlinks
|
||||||
case "$TERM_PROGRAM" in
|
case "$TERM_PROGRAM" in
|
||||||
Hyper|iTerm.app|terminology|WezTerm) return 0 ;;
|
Hyper|iTerm.app|terminology|WezTerm|vscode) return 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# kitty supports hyperlinks
|
# These termcap entries support hyperlinks
|
||||||
if [ "$TERM" = xterm-kitty ]; then
|
case "$TERM" in
|
||||||
|
xterm-kitty|alacritty|alacritty-direct) return 0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# xfce4-terminal supports hyperlinks
|
||||||
|
if [ "$COLORTERM" = "xfce4-terminal" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -90,11 +90,16 @@ supports_hyperlinks() {
|
|||||||
|
|
||||||
# If $TERM_PROGRAM is set, these terminals support hyperlinks
|
# If $TERM_PROGRAM is set, these terminals support hyperlinks
|
||||||
case "$TERM_PROGRAM" in
|
case "$TERM_PROGRAM" in
|
||||||
Hyper|iTerm.app|terminology|WezTerm) return 0 ;;
|
Hyper|iTerm.app|terminology|WezTerm|vscode) return 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# kitty supports hyperlinks
|
# These termcap entries support hyperlinks
|
||||||
if [ "$TERM" = xterm-kitty ]; then
|
case "$TERM" in
|
||||||
|
xterm-kitty|alacritty|alacritty-direct) return 0 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# xfce4-terminal supports hyperlinks
|
||||||
|
if [ "$COLORTERM" = "xfce4-terminal" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user