mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 05:59:46 +08:00
Compare commits
2 Commits
7e4c26860d
...
bbda81fe4b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbda81fe4b | ||
|
|
4167474f12 |
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
# common grc.zsh paths
|
# common grc.zsh paths
|
||||||
files=(
|
files=(
|
||||||
/etc/grc.zsh # default
|
/etc/grc.zsh # default
|
||||||
/usr/local/etc/grc.zsh # homebrew
|
/usr/local/etc/grc.zsh # homebrew darwin-x64
|
||||||
|
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
|
||||||
)
|
)
|
||||||
|
|
||||||
# verify the file is readable and source it
|
# verify the file is readable and source it
|
||||||
|
|||||||
@ -366,7 +366,7 @@ function display-release {
|
|||||||
# In text mode, highlight (#<issue>) and dim text between `backticks`
|
# In text mode, highlight (#<issue>) and dim text between `backticks`
|
||||||
text)
|
text)
|
||||||
if supports_hyperlinks; then
|
if supports_hyperlinks; then
|
||||||
sed -E $'s|#([0-9]+)|\e]8;;https://github.com/ohmyzsh/ohmyzsh/issues/\\1\a\e[32m#\\1\e[0m\e]8;;\a|g' <<< "$subject"
|
sed -E $'s|#([0-9]+)|\e]8;;https://github.com/ohmyzsh/ohmyzsh/issues/\\1\a\e[32m#\\1\e[0m\e]8;;\a|g;s|`([^`]+)`|`\e[2m\\1\e[0m`|g' <<< "$subject"
|
||||||
else
|
else
|
||||||
sed -E $'s|#([0-9]+)|\e[32m#\\1\e[0m|g;s|`([^`]+)`|`\e[2m\\1\e[0m`|g' <<< "$subject"
|
sed -E $'s|#([0-9]+)|\e[32m#\\1\e[0m|g;s|`([^`]+)`|`\e[2m\\1\e[0m`|g' <<< "$subject"
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user