Logo
Explore Help
Register Sign In
mirrors/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-06-03 22:04:31 +08:00
Code Issues Projects Releases Wiki Activity
ohmyzsh/plugins/grc/grc.plugin.zsh

18 lines
279 B
Bash
Raw Normal View History

feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
#!/usr/bin/env zsh
feat(plugins): add grc plugin for Generic Colouriser (#9315) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09 11:59:12 -05:00
feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
# common grc.zsh paths
files=(
/etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew
feat(plugins): add grc plugin for Generic Colouriser (#9315) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09 11:59:12 -05:00
)
feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
# verify the file is readable and source it
for file in $files; do
if [[ -r "$file" ]]; then
source "$file"
break
feat(plugins): add grc plugin for Generic Colouriser (#9315) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-09 11:59:12 -05:00
fi
done
feat(grc): source `grc.zsh` instead of hard-coding its content (#9553) Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-12-31 15:37:28 +05:30
unset file files
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1423ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API